goete111 / factorie

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

Error in MaximizeGaussianVariance #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In object MaximizeGaussianVariance (Gaussian.scala), the function is meant to 
return variance as opposed to standard deviation, so the last line of the 
maxVariance() method should be...

v / (sum - 1)

...as opposed to...

math.sqrt(v / (sum - 1))

What is the expected output? What do you see instead?

In GaussianDemo, the reported variance should be...

Estimated variance=1.0072172086302553

...whereas now it is...

Estimated variance=1.0036021166927933

Original issue reported on code.google.com by mark.fry...@gmail.com on 6 Nov 2012 at 1:15