Most users of Numeric.Statistics.PCA would probably expect a function that returns the n largest components instead of all components greater than a threshold.
Maybe provide an additional function pca' :: I.Array Int (Vector Double) -> Int -> Matrix Double in Numeric.Statistics.PCA.
The change itself is pretty easy; If you want, I can create a pull request for it.
Most users of Numeric.Statistics.PCA would probably expect a function that returns the n largest components instead of all components greater than a threshold.
Maybe provide an additional function
pca' :: I.Array Int (Vector Double) -> Int -> Matrix Double
in Numeric.Statistics.PCA.The change itself is pretty easy; If you want, I can create a pull request for it.