[Positioner] Measurement: intervals are uints
This commit is contained in:
parent
d1c64212d8
commit
ae1fa584a7
|
@ -194,8 +194,8 @@ float Measurement::similarity(const Measurement &source) const
|
||||||
if (algorithm == "interval2")
|
if (algorithm == "interval2")
|
||||||
{
|
{
|
||||||
float std_dev = get_std_deviation_mw() ;
|
float std_dev = get_std_deviation_mw() ;
|
||||||
float interval1 = nb_in_interval(source, 0.674 * std_dev) ;
|
unsigned int interval1 = nb_in_interval(source, 0.674 * std_dev) ;
|
||||||
float interval2 = nb_in_interval(source, std_dev) ;
|
unsigned int interval2 = nb_in_interval(source, std_dev) ;
|
||||||
/* Explanation: with a normal distribution, we normally have:
|
/* Explanation: with a normal distribution, we normally have:
|
||||||
* - 68% of the values within the interval
|
* - 68% of the values within the interval
|
||||||
* [mean-std.dev.;mean+std.dev.], and
|
* [mean-std.dev.;mean+std.dev.], and
|
||||||
|
|
Loading…
Reference in New Issue