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

Add nullspace accuracy parameter #199

Closed bvenn closed 2 years ago

bvenn commented 2 years ago

Related issue

closes #194

Please list the changes introduced in this PR

Description

The accuracy parameter defines the threshold that separates zero singular values from nonzero ones. The default threshold is set to 1e-08.

let a = matrix [[..]
let ns = LinearAlgebra.nullspace(Accuracy=1e-10)
let product = a * ns
//product should give matrix of zeros`

[Required] please make sure you checked that

[Optional]