Java java.util DoubleSummaryStatistics fields, constructors, methods, implement or subclass

Example usage for Java java.util DoubleSummaryStatistics fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util DoubleSummaryStatistics.

The text is from its open source code.

Constructor

DoubleSummaryStatistics()
Constructs an empty instance with zero count, zero sum, Double.POSITIVE_INFINITY min, Double.NEGATIVE_INFINITY max and zero average.

Method

voidaccept(double value)
Records another value into the summary information.
doublegetAverage()
Returns the arithmetic mean of values recorded, or zero if no values have been recorded.
longgetCount()
Return the count of values recorded.
doublegetMax()
Returns the maximum recorded value, Double.NaN if any recorded value was NaN or Double.NEGATIVE_INFINITY if no values were recorded.
doublegetMin()
Returns the minimum recorded value, Double.NaN if any recorded value was NaN or Double.POSITIVE_INFINITY if no values were recorded.
doublegetSum()
Returns the sum of values recorded, or zero if no values have been recorded.