Mercurial > hg > silvet
changeset 125:ab159c3bf1b8 bqvec-openmp
Comments
author | Chris Cannam |
---|---|
date | Wed, 07 May 2014 11:18:30 +0100 |
parents | 8bbb4a17f783 |
children | f7e3c782d758 |
files | src/EM.h |
diffstat | 1 files changed, 24 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/EM.h Wed May 07 11:07:50 2014 +0100 +++ b/src/EM.h Wed May 07 11:18:30 2014 +0100 @@ -24,19 +24,38 @@ EM(bool useShifts); ~EM(); - int getBinCount() const { return m_binCount; } // size of input column - int getNoteCount() const { return m_noteCount; } // size of pitch column + int getBinCount() const { return m_binCount; } + int getNoteCount() const { return m_noteCount; } int getSourceCount() const { return m_sourceCount; } + /** + * Carry out one iteration using the given column as input. The + * column must have getBinCount() values. + */ void iterate(const double *column); - const double *getEstimate() const { // bin count + /** + * Return the estimated distribution after the current iteration. + * Like the input, this will have getBinCount() values. + */ + const double *getEstimate() const { return m_estimate; } - const double *getPitchDistribution() const { // note count + + /** + * Return the pitch distribution for the current estimate. The + * returned array has getNoteCount() values. + */ + const double *getPitchDistribution() const { return m_pitches; } - const double *const *getSources() const { // source count * note count + + /** + * Return the source distribution for the current estimate. The + * returned pointer refers to getSourceCount() arrays of + * getNoteCount() values. + */ + const double *const *getSources() const { return m_sources; }