// file: $ECE_8993/util/calculate_lpc/v1.0/calculate_lpc.h // // Make sure this file is only included once // #ifndef __ISIP_CALCULATE_LPC #define __ISIP_CALCULATE_LPC // isip include files // #ifndef __ISIP_INTEGRAL #include #endif // function prototypes // // function to get the command line parameters // logical_1 get_parameter_cc(int argc, char** argv, logical_1& use_hamming, logical_1& apply_pre_emphasis, float_4& pre_emph_coeff, float_4& window_dur, float_4& sample_freq, logical_1& swap_byte, int_4& lp_order, float_4& mid_time, char_1* input_file, int_4& debug_mode); // function to pre-emphasize the data // logical_1 pre_emphasize_data_cc(float_4* data, int_4 num_samples, int_4 num_channels, float_4 pre_emph_coeff); // function to apply a hamming window to the data // logical_1 window_hamming_cc(float_4* data, int_4 num_samples, int_4 num_channels); // function to find the maximum and minimum of a distribution // logical_1 find_max_min_cc(float_4** data, float_4* max, float_4* min, int_4 num_values, int_4 num_channels); // function to compute the lp spectrum // logical_1 compute_lp_cc(float_4* data, float_4* lp_spectrum_coeffs, int_4 num_samples, int_4 lp_order); // function to compute the autocorrelation of a data set // logical_1 compute_autocorrelation_cc(float_4* data, float_4* autocor_coeffs, int_4 num_samples, int_4 lp_order); // function to compute the lp predictor coefficients // logical_1 compute_lp_coeffs_cc(float_4* pred_coeffs, int_4 lp_order, float_4* autocor_coeffs, float_4& gain); // function to compute the spectrum of the lp model given the predictor // coefficients // logical_1 compute_lp_spect_cc(float_4* pred_coeffs, float_4* spect_coeffs, int_4 lp_order, int_4 num_samples, float_4 gain); // function to compute the dft of a signal // logical_1 compute_dft_cc(float_4* data, float_4* dft_data, int_4 num_samples); // function to debias the data signal // logical_1 debias_cc(float_4* data, int_4 num_samples); // end of file // #endif