Class IntStatistics.Builder
java.lang.Object
org.apache.commons.statistics.descriptive.IntStatistics.Builder
- Enclosing class:
IntStatistics
A builder for
IntStatistics.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds anIntStatisticsinstance.build(int... values) Builds anIntStatisticsinstance using the inputvalues.build(int[] values, int from, int to) Builds anIntStatisticsinstance 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 anIntStatisticsinstance.- Returns:
IntStatisticsinstance.
-
build
Builds anIntStatisticsinstance using the inputvalues.Note:
IntStatisticscomputed usingacceptmay be different from this instance.- Parameters:
values- Values.- Returns:
IntStatisticsinstance.
-
build
Builds anIntStatisticsinstance using the specified range ofvalues.Note:
IntStatisticscomputed usingacceptmay be different from this instance.- Parameters:
values- Values.from- Inclusive start of the range.to- Exclusive end of the range.- Returns:
IntStatisticsinstance.- Throws:
IndexOutOfBoundsException- if the sub-range is out of bounds- Since:
- 1.2
-