Class StreamingStatistics.StreamingStatisticsBuilder

  • Enclosing class:
    StreamingStatistics

    public static class StreamingStatistics.StreamingStatisticsBuilder
    extends Object
    Builder for StreamingStatistics instances.
    • Constructor Detail

      • StreamingStatisticsBuilder

        public StreamingStatisticsBuilder()
        Simple constructor.
    • Method Detail

      • moments

        public StreamingStatistics.StreamingStatisticsBuilder moments​(boolean arg)
        Sets the computeMoments setting of the factory
        Parameters:
        arg - whether or not instances created using build() 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 using build() 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 using build() 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 (see RandomGenerator)
        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 using build() 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