src/experiments/babybot/soundlocalization/soundprocessing.cpp
int
SoundProcessing::ComputeLevels()
{
	//----------------------------------------------------------------------
	//  The left and right correlation spectrums have been already calculated 
	//  in the CrossCorrelation computation
	//----------------------------------------------------------------------
	squareMiddleValLeft  = squareMean(leftcorrelation_Re,
									  leftcorrelation_Im,
									  ILD_LOW_FREQ,
									  FREQ_T);
	squareMiddleValRight = squareMean(rightcorrelation_Re,
									  rightcorrelation_Im,
									  ILD_LOW_FREQ,
									  FREQ_T);

	return 0;
}
/** 
  * This method calculates the ILD.
  *
  * @return 0 OK
  */
This method calculates the ILD.
@return 0 OK
This method calculates the ILD . @return 0 OK
int
SoundProcessing::ComputeLevels()
{
	squareMiddleValLeft  = squareMean(leftcorrelation_Re,
									  leftcorrelation_Im,
									  ILD_LOW_FREQ,
									  FREQ_T);
	squareMiddleValRight = squareMean(rightcorrelation_Re,
									  rightcorrelation_Im,
									  ILD_LOW_FREQ,
									  FREQ_T);
	return 0;
}
int SoundProcessing :: ComputeLevels ( ) { squareMiddleValLeft = squareMean ( leftcorrelation_Re , leftcorrelation_Im , ILD_LOW_FREQ , FREQ_T ) ; squareMiddleValRight = squareMean ( rightcorrelation_Re , rightcorrelation_Im , ILD_LOW_FREQ , FREQ_T ) ; return 0 ; }
This method calculates the ILD.
This method calculates the ILD .
//---------------------------------------------------------------------- //  The left and right correlation spectrums have been already calculated  //  in the CrossCorrelation computation //----------------------------------------------------------------------