41 void iterate(
const double *column);
84 float *m_updatePitches;
85 float **m_updateShifts;
86 float **m_updateSources;
91 const int m_noteCount;
92 const int m_shiftCount;
94 const int m_sourceCount;
96 float m_pitchSparsity;
97 float m_shiftSparsity;
98 float m_sourceSparsity;
100 void normaliseColumn(
float *column,
int size);
101 void normaliseGrid(
float **grid,
int size1,
int size2);
103 void expectation(
const float *column);
106 const float *templateFor(
int instrument,
int note,
int shift);
107 void rangeFor(
int instrument,
int &minPitch,
int &maxPitch);
108 bool inRange(
int instrument,
int pitch);
~EM()
Definition: EM.cpp:72
Definition: Instruments.h:32
int getShiftCount() const
Definition: EM.h:35
void iterate(const double *column)
Definition: EM.cpp:125
EM(const InstrumentPack *pack, bool useShifts)
Definition: EM.cpp:35
const float * getPitchDistribution() const
Definition: EM.h:55
int getNoteCount() const
Definition: EM.h:33
const float * getEstimate() const
Definition: EM.h:47
int getSourceCount() const
Definition: EM.h:34
int getBinCount() const
Definition: EM.h:32
const float *const * getShifts() const
Definition: EM.h:73
const float *const * getSources() const
Definition: EM.h:64
void setSourceSparsity(float sparsity)
Definition: EM.h:30
void setPitchSparsity(float sparsity)
Definition: EM.h:29