Package org.hipparchus.stat.descriptive
Class StreamingStatistics.StreamingStatisticsBuilder
- java.lang.Object
-
- org.hipparchus.stat.descriptive.StreamingStatistics.StreamingStatisticsBuilder
-
- Enclosing class:
- StreamingStatistics
public static class StreamingStatistics.StreamingStatisticsBuilder extends Object
Builder for StreamingStatistics instances.
-
-
Constructor Summary
Constructors Constructor Description StreamingStatisticsBuilder()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingStatisticsbuild()Builds a StreamingStatistics instance with currently defined properties.StreamingStatistics.StreamingStatisticsBuilderextrema(boolean arg)Sets the computeExtrema setting of the factory.StreamingStatistics.StreamingStatisticsBuildermoments(boolean arg)Sets the computeMoments setting of the factoryStreamingStatistics.StreamingStatisticsBuilderpercentiles(double epsilonBound, RandomGenerator generator)Sets the computePercentiles setting of the factory.StreamingStatistics.StreamingStatisticsBuildersumOfLogs(boolean arg)Sets the computeSumOfLogs setting of the factoryStreamingStatistics.StreamingStatisticsBuildersumOfSquares(boolean arg)Sets the computeSumOfSquares setting of the factory.
-
-
-
Method Detail
-
moments
public StreamingStatistics.StreamingStatisticsBuilder moments(boolean arg)
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
public StreamingStatistics.StreamingStatisticsBuilder sumOfLogs(boolean arg)
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
public StreamingStatistics.StreamingStatisticsBuilder sumOfSquares(boolean arg)
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
public StreamingStatistics.StreamingStatisticsBuilder extrema(boolean arg)
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
public StreamingStatistics build()
Builds a StreamingStatistics instance with currently defined properties.- Returns:
- newly configured StreamingStatistics instance
-
-