omrihak / accord

Automatically exported from code.google.com/p/accord
0 stars 0 forks source link

There might be a bug in the EmpiricalDistribution's SmoothingRule() #90

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
public static double SmoothingRule(double[] observations)
{
    return (observations.StandardDeviation(true) * Math.Pow(4.0 / (3.0 * observations.Length), -0.2));
}

I'm getting a value of 38.57 when I was expecting a value closer to 5.914. On 
closer inspection I noticed the -2.0, I think it should be a +2.0; as stated in 
http://en.wikipedia.org/wiki/Kernel_density_estimation.

Original issue reported on code.google.com by Tristen....@gmail.com on 18 Feb 2014 at 1:08

GoogleCodeExporter commented 8 years ago
Thanks! The fix will be available in the next release.

Original comment by cesarso...@gmail.com on 27 May 2014 at 8:52

GoogleCodeExporter commented 8 years ago

Original comment by cesarso...@gmail.com on 8 Aug 2014 at 10:02

GoogleCodeExporter commented 8 years ago
Available on release 2.13.

Original comment by cesarso...@gmail.com on 19 Aug 2014 at 8:33