Class DoubleStatistics.Builder
- java.lang.Object
-
- org.apache.commons.statistics.descriptive.DoubleStatistics.Builder
-
- Enclosing class:
- DoubleStatistics
public static final class DoubleStatistics.Builder extends Object
A builder forDoubleStatistics
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoubleStatistics
build()
Builds aDoubleStatistics
instance.DoubleStatistics
build(double... values)
Builds aDoubleStatistics
instance using the inputvalues
.DoubleStatistics.Builder
setConfiguration(StatisticsConfiguration v)
Sets the statistics configuration options for computation of statistics.
-
-
-
Method Detail
-
setConfiguration
public DoubleStatistics.Builder setConfiguration(StatisticsConfiguration v)
Sets the statistics configuration options for computation of statistics.- Parameters:
v
- Value.- Returns:
- the builder
- Throws:
NullPointerException
- if the value is null
-
build
public DoubleStatistics build()
Builds aDoubleStatistics
instance.- Returns:
DoubleStatistics
instance.
-
build
public DoubleStatistics build(double... values)
Builds aDoubleStatistics
instance using the inputvalues
.Note:
DoubleStatistics
computed usingaccept
may be different from this instance.- Parameters:
values
- Values.- Returns:
DoubleStatistics
instance.
-
-