Mercurial > hg > multitrack-audio-matcher
comparison bayesianArraySrc/DynamicVector.cpp @ 36:eb43b2a007ea
changed newMatchOnset to have different way to calculate onsets vs noise, using the onsetLikelihoodNoise factor
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Tue, 24 Apr 2012 01:19:24 +0100 |
parents | 4f6006cac9de |
children | 93d21c20cfbc |
comparison
equal
deleted
inserted
replaced
35:6fb77b20413c | 36:eb43b2a007ea |
---|---|
14 length = 0; | 14 length = 0; |
15 arraySize = 0; | 15 arraySize = 0; |
16 maximumValue = 0; | 16 maximumValue = 0; |
17 MAPestimate = 0; | 17 MAPestimate = 0; |
18 offset = 0; | 18 offset = 0; |
19 scalar = 1; | 19 scalar = 6; |
20 integratedEstimate = length/2; | 20 integratedEstimate = length/2; |
21 | 21 |
22 gaussianLookupMean = (double) GAUSSIAN_LOOKUP_LENGTH/2; | 22 gaussianLookupMean = (double) GAUSSIAN_LOOKUP_LENGTH/2; |
23 gaussianLookupStdDev = (double)(GAUSSIAN_LOOKUP_LENGTH/16); | 23 gaussianLookupStdDev = (double)(GAUSSIAN_LOOKUP_LENGTH/16); |
24 double factor = 1.0;//(1.0 / (gaussianLookupStdDev*sqrt(2*PI)) );//1.0;//-1.0/(2*PI*sqrt(gaussianLookupStdDev)); | 24 double factor = 1.0;//(1.0 / (gaussianLookupStdDev*sqrt(2*PI)) );//1.0;//-1.0/(2*PI*sqrt(gaussianLookupStdDev)); |