#include <EM.h>

Public Member Functions

 EM (const InstrumentPack *pack, bool useShifts)
 
 ~EM ()
 
void setPitchSparsity (float sparsity)
 
void setSourceSparsity (float sparsity)
 
int getBinCount () const
 
int getNoteCount () const
 
int getSourceCount () const
 
int getShiftCount () const
 
void iterate (const double *column)
 
const float * getEstimate () const
 
const float * getPitchDistribution () const
 
const float *const * getSources () const
 
const float *const * getShifts () const
 

Constructor & Destructor Documentation

EM::EM ( const InstrumentPack pack,
bool  useShifts 
)
EM::~EM ( )

Member Function Documentation

int EM::getBinCount ( ) const
inline
const float* EM::getEstimate ( ) const
inline

Return the estimated distribution after the current iteration. Like the input, this will have getBinCount() values.

int EM::getNoteCount ( ) const
inline
const float* EM::getPitchDistribution ( ) const
inline

Return the pitch distribution for the current estimate. The returned array has getNoteCount() values.

int EM::getShiftCount ( ) const
inline
const float* const* EM::getShifts ( ) const
inline

Return the shift distribution for the current estimate. The returned pointer refers to getShiftCount() arrays of getNoteCount() values.

int EM::getSourceCount ( ) const
inline
const float* const* EM::getSources ( ) const
inline

Return the source distribution for the current estimate. The returned pointer refers to getSourceCount() arrays of getNoteCount() values.

void EM::iterate ( const double *  column)

Carry out one iteration using the given column as input. The column must have getBinCount() values.

void EM::setPitchSparsity ( float  sparsity)
inline
void EM::setSourceSparsity ( float  sparsity)
inline

The documentation for this class was generated from the following files: