// file: $SPEECH_HOMEWORK4/hw4/class/snr_ratio/v1.0/snr_cdf_0.cc // // isip include files // #include "signal_noise_ratio.h" #include "signal_noise_ratio_constants.h" // method: calculate_cdf_cc // // arguments: // int_4** pdf (input) the pdf values // int_4** cdf (output) the output location of the cdf values // // return: a logical_1 indicating status // logical_1 Signal::calculate_cdf_cc (int_4** pdf_a, int_4** cdf_a) { // check argument // if (cdf_a == (int_4**)NULL) { error_handler_cc((char_1*)"calculate_cdf_cc", (char_1*)"output memory is not allocated"); } // loop over channels // for (int_4 channel=0;channel