comparison src/BayesianArrayStructure.cpp @ 24:5a11b19906c7

hackday code is added.
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sat, 03 Dec 2011 17:19:43 +0000
parents 032edf186a68
children
comparison
equal deleted inserted replaced
23:032edf186a68 24:5a11b19906c7
28 lastEventTime = 0;//ofGetElapsedTimeMillis(); 28 lastEventTime = 0;//ofGetElapsedTimeMillis();
29 29
30 tmpBestEstimate = 0; 30 tmpBestEstimate = 0;
31 crossUpdateTimeThreshold = 60; 31 crossUpdateTimeThreshold = 60;
32 priorWidth = 50; 32 priorWidth = 50;
33 usingIntegratedTempoEstimate = true;//use max index
33 } 34 }
34 35
35 BayesianArrayStructure::BayesianArrayStructure(int length){ 36 BayesianArrayStructure::BayesianArrayStructure(int length){
36 printf("BAYESIAN STURTUCRE CREATED LENGTH: %i\n", length); 37 printf("BAYESIAN STURTUCRE CREATED LENGTH: %i\n", length);
37 //this constructor isnt called it seems 38 //this constructor isnt called it seems
38 prior.createVector(length); 39 prior.createVector(length);
39 likelihood.createVector(length); 40 likelihood.createVector(length);
40 posterior.createVector(length); 41 posterior.createVector(length);
41 42
42 lastEventTime = 0; 43 lastEventTime = 0;
43 usingIntegratedTempoEstimate = true;//use max index 44
44 45
45 } 46 }
46 47
47 48
48 49