comparison NoteHypothesis.h @ 66:7ad142c710c6 parameters

Add some parameters
author Chris Cannam
date Fri, 30 Aug 2013 15:35:49 +0100
parents 9f50a5876dd3
children
comparison
equal deleted inserted replaced
65:9e414ae1f2fb 66:7ad142c710c6
55 /// Have been satisfied, but evidence has now changed: we're done 55 /// Have been satisfied, but evidence has now changed: we're done
56 Expired 56 Expired
57 }; 57 };
58 58
59 /** 59 /**
60 * Construct an empty hypothesis. This will be in New state and 60 * Construct an empty hypothesis. The given slack (in
61 * will provisionally accept any estimate. 61 * milliseconds) determines how long the hypothesis is prepared to
62 * tolerate unacceptable estimates in between accepted estimates
63 * before it becomes rejected. A reasonable default is 40ms.
64 *
65 * This hypothesis will be in New state and will provisionally
66 * accept any estimate.
62 */ 67 */
63 NoteHypothesis(); 68 NoteHypothesis(float slack);
64 69
65 /** 70 /**
66 * Destroy the hypothesis 71 * Destroy the hypothesis
67 */ 72 */
68 ~NoteHypothesis(); 73 ~NoteHypothesis();
132 bool isOutOfDateFor(Estimate) const; 137 bool isOutOfDateFor(Estimate) const;
133 bool isSatisfied() const; 138 bool isSatisfied() const;
134 139
135 State m_state; 140 State m_state;
136 Estimates m_pending; 141 Estimates m_pending;
142 float m_slack;
137 }; 143 };
138 144
139 #endif 145 #endif