public static class StreamingStatistics.StreamingStatisticsBuilder extends Object
Constructor and Description |
---|
StreamingStatisticsBuilder()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
StreamingStatistics |
build()
Builds a StreamingStatistics instance with currently defined properties.
|
StreamingStatistics.StreamingStatisticsBuilder |
extrema(boolean arg)
Sets the computeExtrema setting of the factory.
|
StreamingStatistics.StreamingStatisticsBuilder |
moments(boolean arg)
Sets the computeMoments setting of the factory
|
StreamingStatistics.StreamingStatisticsBuilder |
percentiles(boolean arg)
Deprecated.
as of 2.3, replaced by
percentiles(double, RandomGenerator) |
StreamingStatistics.StreamingStatisticsBuilder |
percentiles(double epsilonBound,
RandomGenerator generator)
Sets the computePercentiles setting of the factory.
|
StreamingStatistics.StreamingStatisticsBuilder |
sumOfLogs(boolean arg)
Sets the computeSumOfLogs setting of the factory
|
StreamingStatistics.StreamingStatisticsBuilder |
sumOfSquares(boolean arg)
Sets the computeSumOfSquares setting of the factory.
|
public StreamingStatisticsBuilder()
public StreamingStatistics.StreamingStatisticsBuilder moments(boolean arg)
arg
- whether or not instances created using build()
will
maintain moment statisticspublic StreamingStatistics.StreamingStatisticsBuilder sumOfLogs(boolean arg)
arg
- whether or not instances created using build()
will
maintain log sumspublic StreamingStatistics.StreamingStatisticsBuilder sumOfSquares(boolean arg)
arg
- whether or not instances created using build()
will
maintain sums of squares@Deprecated public StreamingStatistics.StreamingStatisticsBuilder percentiles(boolean arg)
percentiles(double, RandomGenerator)
arg
- whether or not instances created using build()
will
compute percentiles, using default parameters for RandomPercentile
public StreamingStatistics.StreamingStatisticsBuilder percentiles(double epsilonBound, RandomGenerator generator)
epsilonBound
- bound on quantile estimation error (see RandomGenerator
)generator
- PRNG used in sampling and merge operationspublic StreamingStatistics.StreamingStatisticsBuilder extrema(boolean arg)
arg
- whether or not instances created using build()
will
compute min and maxpublic StreamingStatistics build()
Copyright © 2016-2022 CS GROUP. All rights reserved.