fslaborg / FSharp.Stats

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

Add and Change Correlation and Covariance Functions. #148

Closed DavideGCosta closed 2 years ago

DavideGCosta commented 2 years ago

Addresses issues https://github.com/fslaborg/FSharp.Stats/issues/123 and https://github.com/fslaborg/FSharp.Stats/issues/147.

This PR contains changes in Correlation.fs, Seq.fs, List.fs and Array.fs files (Tests included).

Correlation.fs files:

Addresses the comment https://github.com/fslaborg/FSharp.Stats/issues/123#issuecomment-817145084 about including:

Notes:

Seq.fs, List.fs and Array.fs: files:

Addresses the issue https://github.com/fslaborg/FSharp.Stats/issues/147 about changing covBy and covPopulationBy to receive one collection rather than two, and to follow the same rationale as in stDevBy and averageBy.

Functions Changed:

Functions Added:

Tests for all these functions were included and based on the cov and covPopulation tests.