You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2026/04/17 14:13:37 UTC

(commons-statistics) 01/02: Correct javadoc code example

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-statistics.git

commit 2f30ee4c3a0747283e76da002deaffc9c8286e68
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Fri Apr 17 14:44:45 2026 +0100

    Correct javadoc code example
---
 .../java/org/apache/commons/statistics/descriptive/Quantile.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/Quantile.java b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/Quantile.java
index 4ce70e08..2342a3d7 100644
--- a/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/Quantile.java
+++ b/commons-statistics-descriptive/src/main/java/org/apache/commons/statistics/descriptive/Quantile.java
@@ -906,7 +906,8 @@ public final class Quantile {
      * <pre>{@code
      * long[] x = ...
      * Arrays.sort(x);
-     * StatisticResult q = Quantile.withDefaults().evaluate(x.length, i -> x[i], 0.05);
+     * StatisticResult q = Quantile.withDefaults()
+     *                             .evaluateAsLong(x.length, i -> x[i], 0.05);
      * }</pre>
      *
      * <p>Note: It is not recommended to sort data for use only in the quantile computation.
@@ -948,7 +949,8 @@ public final class Quantile {
      * <pre>{@code
      * long[] x = ...
      * Arrays.sort(x);
-     * StatisticResult[] q = Quantile.withDefaults().evaluate(x.length, i -> x[i], 0.25, 0.5, 0.75);
+     * StatisticResult[] q = Quantile.withDefaults()
+     *                               .evaluateAsLong(x.length, i -> x[i], 0.25, 0.5, 0.75);
      * }</pre>
      *
      * <p>Note: It is not recommended to sort data for use only in the quantile computation.