comparison src/BayesianArrayStructure.h @ 3:de86d77f2612

added speed prior setting. needs some cleaning
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Fri, 19 Aug 2011 02:36:34 +0100
parents 5581023e0de4
children 4a8e6a6cd224
comparison
equal deleted inserted replaced
2:5581023e0de4 3:de86d77f2612
71 double speedDecayWidth, speedDecayAmount; 71 double speedDecayWidth, speedDecayAmount;
72 void decaySpeedDistribution(double timeDifference); 72 void decaySpeedDistribution(double timeDifference);
73 73
74 void resetSpeedSize(int length); 74 void resetSpeedSize(int length);
75 void setRelativeSpeedScalar(double f); 75 void setRelativeSpeedScalar(double f);
76 void setSpeedPrior(double f);
76 void calculateNewPriorOffset(const double& timeDifference); 77 void calculateNewPriorOffset(const double& timeDifference);
77 void setNewDistributionOffsets(const double& newOffset); 78 void setNewDistributionOffsets(const double& newOffset);
78 79
79 void updateTempoDistribution(const double& speedRatio, const double& matchFactor); 80 void updateTempoDistribution(const double& speedRatio, const double& matchFactor);
80 81
82 void calculateTempoUpdate(); 83 void calculateTempoUpdate();
83 void updateTempoLikelihood(const double& speedRatio, const double& matchFactor); 84 void updateTempoLikelihood(const double& speedRatio, const double& matchFactor);
84 85
85 void crossUpdateArrays(DynamicVector& position, DynamicVector& speed, double timeDifference); 86 void crossUpdateArrays(DynamicVector& position, DynamicVector& speed, double timeDifference);
86 87
88 double speedPriorValue;
89
87 }; 90 };
88 #endif 91 #endif