From 828c863a006a063c47e39f104643c66552d12571 Mon Sep 17 00:00:00 2001
From: Phil Steitz
diff --git a/src/site/xdoc/userguide/stat.xml b/src/site/xdoc/userguide/stat.xml
index e85a449c3..4abbdc499 100644
--- a/src/site/xdoc/userguide/stat.xml
+++ b/src/site/xdoc/userguide/stat.xml
@@ -36,8 +36,9 @@
Frequency distributions
Simple Regression
Multiple Regression
- Covariance and correlation
- Statistical Tests
+ Rank transformations
+ Covariance and correlation
+ Statistical Tests
+ Some statistical algorithms require that input data be replaced by ranks. + The + org.apache.commons.math.stat.ranking package provides rank transformation. + + RankingAlgorithm defines the interface for ranking. + + NaturalRanking provides an implementation that has two configuration options. +
+ Examples:
+
+ results in ranks
containing {6, 5, 7, 8, 5, 9, 2, 2, 5}.
+
+ returns {5, 2, 6, 7, 3, 8, 1, 4}.
+
+ The default NaNStrategy
is NaNStrategy.MAXIMAL. This makes NaN
+ values larger than any other value (including Double.POSITIVE_INFINITY
). The
+ default TiesStrategy
is TiesStrategy.AVERAGE,
which assigns tied
+ values the average of the ranks applicable to the sequence of ties. See the
+
+ NaturalRanking for more examples and
+ TiesStrategy and NaNStrategy
+ for details on these configuration options.
+
The org.apache.commons.math.stat.correlation package computes covariances @@ -617,7 +660,7 @@ new PearsonsCorrelation(data).getCorrelationPValues().getEntry(0,1)