/Users/richardeakin/projects/libsms/trunk/src/residual.c File Reference

main sms_residual() function More...

#include "sms.h"
Include dependency graph for residual.c:

Functions

int sms_residual (int sizeWindow, sfloat *pSynthesis, sfloat *pOriginal, sfloat *pResidual, sfloat *pWindow)
 get the residual waveform
int sms_residualOLD (int sizeWindow, sfloat *pSynthesis, sfloat *pOriginal, sfloat *pResidual, sfloat *pWindow)
 get the residual waveform

Detailed Description

main sms_residual() function


Function Documentation

int sms_residual ( int  sizeWindow,
sfloat *  pSynthesis,
sfloat *  pOriginal,
sfloat *  pResidual,
sfloat *  pWindow 
)

get the residual waveform

Parameters:
sizeWindow size of buffers
pSynthesis pointer to deterministic component
pOriginal pointer to original waveform
pResidual pointer to output residual waveform
pWindow pointer to windowing array
Returns:
residual percentage (0 if residual was not large enough)
Todo:
why is residual energy percentage computed this way? should be optional and in a seperate function

References sfloat.

Referenced by sms_analyze().

int sms_residualOLD ( int  sizeWindow,
sfloat *  pSynthesis,
sfloat *  pOriginal,
sfloat *  pResidual,
sfloat *  pWindow 
)

get the residual waveform

Parameters:
sizeWindow size of buffers
pSynthesis pointer to deterministic component
pOriginal pointer to original waveform
pResidual pointer to output residual waveform
pWindow pointer to windowing array
Returns:
residual percentage
Todo:
why is residual energy percentage computed this way? should be optional and in a seperate function

References sfloat.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Thu Oct 29 04:08:07 2009 for libsms by  doxygen 1.6.1