Class DoubleStatistics.Builder
java.lang.Object
org.apache.commons.statistics.descriptive.DoubleStatistics.Builder
- Enclosing class:
DoubleStatistics
A builder for
DoubleStatistics.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDoubleStatisticsinstance.build(double... values) Builds aDoubleStatisticsinstance using the inputvalues.build(double[] values, int from, int to) Builds aDoubleStatisticsinstance using the specified range ofvalues.Sets the statistics configuration options for computation of statistics.
-
Method Details
-
setConfiguration
Sets the statistics configuration options for computation of statistics.- Parameters:
v- Value.- Returns:
- the builder
- Throws:
NullPointerException- if the value is null
-
build
Builds aDoubleStatisticsinstance.- Returns:
DoubleStatisticsinstance.
-
build
Builds aDoubleStatisticsinstance using the inputvalues.Note:
DoubleStatisticscomputed usingacceptmay be different from this instance.- Parameters:
values- Values.- Returns:
DoubleStatisticsinstance.
-
build
Builds aDoubleStatisticsinstance using the specified range ofvalues.Note:
DoubleStatisticscomputed usingacceptmay be different from this instance.- Parameters:
values- Values.from- Inclusive start of the range.to- Exclusive end of the range.- Returns:
DoubleStatisticsinstance.- Throws:
IndexOutOfBoundsException- if the sub-range is out of bounds- Since:
- 1.2
-