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 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 factoryStreamingStatistics.StreamingStatisticsBuilder
percentiles(boolean arg)
Sets the computePercentiles setting of the factory.StreamingStatistics.StreamingStatisticsBuilder
sumOfLogs(boolean arg)
Sets the computeSumOfLogs setting of the factoryStreamingStatistics.StreamingStatisticsBuilder
sumOfSquares(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(boolean arg)
Sets the computePercentiles setting of the factory.- Parameters:
arg
- whether or not instances created usingbuild()
will compute percentiles- Returns:
- a factory with the given computePercentiles property set
-
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
-
-