fslaborg / FSharp.Stats

statistical testing, linear algebra, machine learning, fitting and signal processing in F#
https://fslab.org/FSharp.Stats/
Other
210 stars 56 forks source link

[BUG] Vector.cov does not return correct covariance #83

Closed bvenn closed 4 years ago

bvenn commented 4 years ago

Describe the bug Vector.cov reports an incorrect value as covariance of two samples. The same is true for Vector.covPopulation.

To Reproduce Vector.covPopulation (vector [5.;12.;18.;23.;45.;]) (vector [2.;8.;18.;20.;28.;])

Fix The loop exit happens too early (by one increment).

bvenn commented 4 years ago

closed by 8b7b7305e87850bcd4cd9894549923663e31fbed