Mercurial > hg > midi-score-follower
comparison src/DynamicVector.h @ 22:9860abc92a30
follower has confidence measure now just using best match. Difficulty in visualising the speed likelihood fn
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Wed, 30 Nov 2011 11:48:35 +0000 |
parents | 75dcd1308658 |
children |
comparison
equal
deleted
inserted
replaced
21:11e3119ce6b4 | 22:9860abc92a30 |
---|---|
26 typedef std::vector<double> DoubleVector; | 26 typedef std::vector<double> DoubleVector; |
27 DoubleVector array; | 27 DoubleVector array; |
28 double getMaximum(); | 28 double getMaximum(); |
29 double getIntegratedEstimate(); | 29 double getIntegratedEstimate(); |
30 double getLookupIndex(const int& i, const double& mean, const double& StdDev); | 30 double getLookupIndex(const int& i, const double& mean, const double& StdDev); |
31 void addGaussianShapeByLookupTable(double& mean, double& StdDev, double& factor); | 31 void addGaussianShapeByLookupTable(double& mean, double& StdDev, double factor); |
32 double gaussianLookupTable[GAUSSIAN_LOOKUP_LENGTH]; | 32 double gaussianLookupTable[GAUSSIAN_LOOKUP_LENGTH]; |
33 double gaussianLookupMean, gaussianLookupStdDev; | 33 double gaussianLookupMean, gaussianLookupStdDev; |
34 double integratedEstimate; | 34 double integratedEstimate; |
35 void updateIntegratedEstimate(); | 35 void updateIntegratedEstimate(); |
36 | 36 |
37 void drawVector(const int& minIndex, const int& maxIndex); | 37 void drawVector(const int& minIndex, const int& maxIndex); |
38 void drawConstrainedVector(const int& minIndex, const int& maxIndex, const int& minScreenIndex, const int& maxScreenIndex); | 38 void drawConstrainedVector(const int& minIndex, const int& maxIndex, const int& minScreenIndex, const int& maxScreenIndex); |
39 | 39 |
40 void addConstant(double value); | 40 void addConstant(const double& value); |
41 void addGaussianShape(double mean, double stddev, double factor); | 41 void addGaussianShape(const double& mean, const double& stddev, double factor); |
42 void addTriangularShape(double mean, double width, double factor); | 42 void addTriangularShape(double mean, double width, double factor); |
43 void addToIndex(int index, double constant); | 43 void addToIndex(const int& index, const double& constant); |
44 | 44 |
45 void doProduct(DynamicVector& arrayOne, DynamicVector& arrayTwo); | 45 void doProduct(DynamicVector& arrayOne, DynamicVector& arrayTwo); |
46 | 46 |
47 double getIndexInRealTerms(const int& index); | 47 double getIndexInRealTerms(const int& index); |
48 double getRealTermsAsIndex(double value); | 48 double getRealTermsAsIndex(double value); |