From 262f1acf2cbeeaf008c272774d008d6d462f1022 Mon Sep 17 00:00:00 2001 From: Benedikt Venn Date: Tue, 31 May 2022 14:33:09 +0200 Subject: [PATCH] add rank reference to readMe --- README.md | 75 ++++++++++++++++++++++++++++++++++++---- src/FSharp.Stats/Rank.fs | 3 +- 2 files changed, 69 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 605cb2c9..97d504d6 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,74 @@ FSharp.Stats is a multipurpose project for statistical testing, linear algebra, ##### Amongst others, following functionalities are covered: - -|Descriptive statistics|Fitting|Interpolation|Signal processing| -|:---|:---|:---|:---| -| |
|


|

| -|**Linear algebra** |**Machine Learning**|**Optimization** |**Testing** | -|




|


|



|| - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Descriptive statisticsFittingInterpolationSignal processing
+ - Measures of central tendency
+ - Measures of dispersion
+ - Correlation
+ - Quantile/Rank
+ - Distribution
+
+ - Linear regression
+ - Nonlinear regression
+ - Spline regression
+ - Goodness of fit
+
+ - Polynomial interpolation
+ - Spline interpolation
+
+ - Continuous wavelet transform
+ - Smoothing filters
+ - Peak detection +
Linear AlgebraMachine learningOptimizationStatistical testing
+ - Singular value decomposition + + - PCA
+ - Clustering
+ - Surprisal analysis +
+ - Brent minimization
+ - Bisection +
+ - t test, H test, etc.
+ - ANOVA
+ - Post hoc tests
+ - q values
+ - SAM
+ - RMT +
## Documentation diff --git a/src/FSharp.Stats/Rank.fs b/src/FSharp.Stats/Rank.fs index 040db458..531b7701 100644 --- a/src/FSharp.Stats/Rank.fs +++ b/src/FSharp.Stats/Rank.fs @@ -83,9 +83,8 @@ type Rank() = let ranks = Array.zeroCreate data.Length let index = Array.init data.Length id //System.Array.Sort(data',index,comparer=comparer) - if orderNanLast then System.Array.Sort(data',index,comparer=compNaNLast) else System.Array.Sort(data',index) - if setNanToNan && typeof<'b>.Name = "Double" then + if setNanToNan && box data :? float [] then for i=0 to ranks.Length-1 do if nan.Equals data.[index.[i]] then ranks.[index.[i]] <- nan