From 5d6e445484d75dad938cece6fd690427ea648203 Mon Sep 17 00:00:00 2001 From: Gilles Date: Tue, 9 Dec 2014 00:13:28 +0100 Subject: [PATCH] MATH-1178 (typo in userguide) Fixed incorrect example in "stat" section. [Reported by Dmitriy.] --- src/changes/changes.xml | 3 +++ src/site/xdoc/userguide/stat.xml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index aeb955115..5c086ce33 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -73,6 +73,9 @@ Users are encouraged to upgrade to this version as this release not 2. A few methods in the FastMath class are in fact slower that their counterpart in either Math or StrictMath (cf. MATH-740 and MATH-901). "> + + Fixed example in userguide ("stat" section). + Fixed inverse cumulative probability of 0 in "LaplaceDistribution". diff --git a/src/site/xdoc/userguide/stat.xml b/src/site/xdoc/userguide/stat.xml index ce133ccb3..b93e0e1f3 100644 --- a/src/site/xdoc/userguide/stat.xml +++ b/src/site/xdoc/userguide/stat.xml @@ -196,7 +196,7 @@ double std = stats.getStandardDeviation(); // Compute statistics directly from the array // assume values is a double[] array double mean = StatUtils.mean(values); -double std = StatUtils.variance(values); +double std = FastMath.sqrt(StatUtils.variance(values)); double median = StatUtils.percentile(values, 50); // Compute the mean of the first three values in the array