[Positioner] Measurement: intervals are uints

This commit is contained in:
Matteo Cypriani 2012-10-16 15:29:13 +02:00
parent d1c64212d8
commit ae1fa584a7
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ float Measurement::similarity(const Measurement &source) const
if (algorithm == "interval2")
{
float std_dev = get_std_deviation_mw() ;
float interval1 = nb_in_interval(source, 0.674 * std_dev) ;
float interval2 = nb_in_interval(source, std_dev) ;
unsigned int interval1 = nb_in_interval(source, 0.674 * std_dev) ;
unsigned int interval2 = nb_in_interval(source, std_dev) ;
/* Explanation: with a normal distribution, we normally have:
* - 68% of the values within the interval
* [mean-std.dev.;mean+std.dev.], and