src/experiments/babybot/soundidentification/soundidentificationprocessing.cpp
int
SoundIdentificationProcessing::NormalizeSoundArray( const double Limit)
{
	try {
		LOCAL_TRACE("SoundIdentificationProcessing: Entering NormalizeSoundArray");
		int i;

		for( i=0; i<numSamples; i++){
			_pSoundData[i] = _pSoundData[i] / (double)Limit; 
		}
		return YARP_OK;
	}
	catch (...) {
		ACE_OS::fprintf(stdout,"SoundIdentificationProcessing: Exception NormalizeSoundArray\n");	 	 	  
		return YARP_FAIL;
	}
}
/** 
  * Normalize the sound array into a giving limit.
  * 
  * @param topLimit The top limit of the normalized range 
  * values.
  */
Normalize the sound array into a giving limit.

@param topLimit The top limit of the normalized range
values.
Normalize the sound array into a giving limit . @param topLimit The top limit of the normalized range values .
int
SoundIdentificationProcessing::NormalizeSoundArray( const double Limit)
{
	try {
		LOCAL_TRACE("SoundIdentificationProcessing: Entering NormalizeSoundArray");
		int i;
		for( i=0; i<numSamples; i++){
			_pSoundData[i] = _pSoundData[i] / (double)Limit; 
		}
		return YARP_OK;
	}
	catch (...) {
		ACE_OS::fprintf(stdout,"SoundIdentificationProcessing: Exception NormalizeSoundArray\n");	 	 	  
		return YARP_FAIL;
	}
}
int SoundIdentificationProcessing :: NormalizeSoundArray ( const double Limit ) { try { LOCAL_TRACE ( " " ) ; int i ; for ( i = 0 ; i < numSamples ; i ++ ) { _pSoundData [ i ] = _pSoundData [ i ] / ( double ) Limit ; } return YARP_OK ; } catch ( ... ) { ACE_OS :: fprintf ( stdout , " \n " ) ; return YARP_FAIL ; } }
Normalize the sound array into a giving limit.
Normalize the sound array into a giving limit .