// file: $SPEECH_HOMEWORK4/hw4/class/snr_ratio/v1.0/snr_proc_1.cc // // isip include files // #include "signal_noise_ratio.h" #include "signal_noise_ratio_constants.h" // method: process_plots_cc // // arguments: // float_4** energy (output) the energy signal for each sample frame // at each channel // int_4 num_energy (output) the total number of energy signals // // return: a logical_1 indicating status // logical_1 Signal::process_plots_cc (float_4** energy_a, int_4 num_energy_a) { // check arguments // if (energy_a == (float_4**)NULL) { error_handler_cc((char_1*)"process_plots_cc", (char_1*)"energy information is empty"); } if (num_energy_a <= 0) { error_handler_cc((char_1*)"process_plots_cc", (char_1*)"invalid number of energy values"); } // set up min and max value for pdf // float_4* min = new float_4[num_chans_d]; float_4* max = new float_4[num_chans_d]; // find the min and max of the energy for pdf // find_range_cc(energy_a, num_energy_a, min, max); // set up variable to perform pdf // int_4** pdf = new int_4*[num_bins_d]; float_4** mean = new float_4*[num_bins_d]; for (int_4 i=0;i 1) { for (int_4 i=0;i