divyang4481 / accord

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

Error in Accord.Statistics.Tools #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I found a little error in the code for the WeightedVariance in Tools.cs :

Line 1571 : return WeightedVariance(matrix, Mean(matrix), weights);
Line 1583 : public static double[] WeightedVariance(this double[][] matrix, 
double[] weights, double[] means)

As you can see, the means and weights parameters are inverted on line 1571.

Original issue reported on code.google.com by mic.bes...@gmail.com on 29 Dec 2013 at 11:24

GoogleCodeExporter commented 9 years ago
Many thanks!

Original comment by cesarso...@gmail.com on 29 Dec 2013 at 12:09

GoogleCodeExporter commented 9 years ago
Fixed in release 2.12

Original comment by cesarso...@gmail.com on 6 Jan 2014 at 11:06