Package org.hipparchus.stat.descriptive
Class StreamingStatistics.StreamingStatisticsBuilder
java.lang.Object
org.hipparchus.stat.descriptive.StreamingStatistics.StreamingStatisticsBuilder
- Enclosing class:
- StreamingStatistics
Builder for StreamingStatistics instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a StreamingStatistics instance with currently defined properties.extrema
(boolean arg) Sets the computeExtrema setting of the factory.moments
(boolean arg) Sets the computeMoments setting of the factorypercentiles
(double epsilonBound, RandomGenerator generator) Sets the computePercentiles setting of the factory.sumOfLogs
(boolean arg) Sets the computeSumOfLogs setting of the factorysumOfSquares
(boolean arg) Sets the computeSumOfSquares setting of the factory.
-
Constructor Details
-
StreamingStatisticsBuilder
public StreamingStatisticsBuilder()Simple constructor.
-
-
Method Details
-
moments
Sets the computeMoments setting of the factory- Parameters:
arg
- whether or not instances created usingbuild()
will maintain moment statistics- Returns:
- a factory with the given computeMoments property set
-
sumOfLogs
Sets the computeSumOfLogs setting of the factory- Parameters:
arg
- whether or not instances created usingbuild()
will maintain log sums- Returns:
- a factory with the given computeSumOfLogs property set
-
sumOfSquares
Sets the computeSumOfSquares setting of the factory.- Parameters:
arg
- whether or not instances created usingbuild()
will maintain sums of squares- Returns:
- a factory with the given computeSumOfSquares property set
-
percentiles
public StreamingStatistics.StreamingStatisticsBuilder percentiles(double epsilonBound, RandomGenerator generator) Sets the computePercentiles setting of the factory.- Parameters:
epsilonBound
- bound on quantile estimation error (seeRandomGenerator
)generator
- PRNG used in sampling and merge operations- Returns:
- a factory with the given computePercentiles property set
- Since:
- 2.3
-
extrema
Sets the computeExtrema setting of the factory.- Parameters:
arg
- whether or not instances created usingbuild()
will compute min and max- Returns:
- a factory with the given computeExtrema property set
-
build
Builds a StreamingStatistics instance with currently defined properties.- Returns:
- newly configured StreamingStatistics instance
-