| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private double | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | addAll(long...
a series of values, which will be converted to values)double values (this may
cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))Adds the given values to the dataset. |
| public void | |
| public void | |
| public void | addAll(LongStream
a series of values, which will be converted to values)double values (this may
cause loss of precision for longs of magnitude over 2^53 (slightly over 9e15))Adds the given values to the dataset. |
| public void | |
| public void | addAll(StatsAccumulator values)
Adds the given statistics to the dataset, as if the individual values used to compute the statistics had been added directly. |
| pack-priv static double | calculateNewMeanNonFinite(double previousMean, double value)
Calculates the new value for the accumulated mean when a value is added, in the case where at least one of the previous mean and the value is non-finite. |
| public long | |
| public double | |
| public double | |
| private void | merge(long otherCount, double otherMean, double otherSumOfSquaresOfDeltas, double otherMin, double otherMax)
|
| public double | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public Stats | |
| public final double | |
| pack-priv double |
| count | back to summary |
|---|---|
| private long count | |
| max | back to summary |
|---|---|
| private double max | |
| mean | back to summary |
|---|---|
| private double mean | |
| min | back to summary |
|---|---|
| private double min | |
| sumOfSquaresOfDeltas | back to summary |
|---|---|
| private double sumOfSquaresOfDeltas | |
| StatsAccumulator | back to summary |
|---|---|
| public StatsAccumulator() | |
| add | back to summary |
|---|---|
| public void add(double value) Adds the given value to the dataset. | |
| addAll | back to summary |
|---|---|
| public void addAll(Iterable<? extends Number> values) Adds the given values to the dataset. | |
| addAll | back to summary |
|---|---|
| public void addAll(Iterator<? extends Number> values) Adds the given values to the dataset. | |
| addAll | back to summary |
|---|---|
| public void addAll(double... values) Adds the given values to the dataset.
| |
| addAll | back to summary |
|---|---|
| public void addAll(int... values) Adds the given values to the dataset.
| |
| addAll | back to summary |
|---|---|
| public void addAll(long... values) Adds the given values to the dataset.
| |
| addAll | back to summary |
|---|---|
| public void addAll(DoubleStream values) Adds the given values to the dataset. The stream will be completely consumed by this method.
| |
| addAll | back to summary |
|---|---|
| public void addAll(IntStream values) Adds the given values to the dataset. The stream will be completely consumed by this method.
| |
| addAll | back to summary |
|---|---|
| public void addAll(LongStream values) Adds the given values to the dataset. The stream will be completely consumed by this method.
| |
| addAll | back to summary |
|---|---|
| public void addAll(Stats values) Adds the given statistics to the dataset, as if the individual values used to compute the statistics had been added directly. | |
| addAll | back to summary |
|---|---|
| public void addAll(StatsAccumulator values) Adds the given statistics to the dataset, as if the individual values used to compute the statistics had been added directly.
| |
| calculateNewMeanNonFinite | back to summary |
|---|---|
| pack-priv static double calculateNewMeanNonFinite(double previousMean, double value) Calculates the new value for the accumulated mean when a value is added, in the case where at least one of the previous mean and the value is non-finite. | |
| count | back to summary |
|---|---|
| public long count() Returns the number of values. | |
| max | back to summary |
|---|---|
| public double max() Returns the highest value in the dataset. The count must be non-zero. Non-finite valuesIf the dataset contains
| |
| mean | back to summary |
|---|---|
| public double mean() Returns the arithmetic mean of the values. The count must be non-zero. If these values are a sample drawn from a population, this is also an unbiased estimator of the arithmetic mean of the population. Non-finite valuesIf the dataset contains
| |
| merge | back to summary |
|---|---|
| private void merge(long otherCount, double otherMean, double otherSumOfSquaresOfDeltas, double otherMin, double otherMax) | |
| min | back to summary |
|---|---|
| public double min() Returns the lowest value in the dataset. The count must be non-zero. Non-finite valuesIf the dataset contains
| |
| populationStandardDeviation | back to summary |
|---|---|
| public final double populationStandardDeviation() Returns the population standard deviation of the values. The count must be non-zero. This is guaranteed to return zero if the dataset contains only exactly one finite value. It is not guaranteed to return zero when the dataset consists of the same value multiple times, due to numerical errors. However, it is guaranteed never to return a negative result. Non-finite valuesIf the dataset contains any non-finite values (
| |
| populationVariance | back to summary |
|---|---|
| public final double populationVariance() Returns the population variance of the values. The count must be non-zero. This is guaranteed to return zero if the dataset contains only exactly one finite value. It is not guaranteed to return zero when the dataset consists of the same value multiple times, due to numerical errors. However, it is guaranteed never to return a negative result. Non-finite valuesIf the dataset contains any non-finite values (
| |
| sampleStandardDeviation | back to summary |
|---|---|
| public final double sampleStandardDeviation() Returns the
corrected sample standard deviation of the values. If this dataset is a sample drawn from a
population, this is an estimator of the population standard deviation of the population which
is less biased than This is not guaranteed to return zero when the dataset consists of the same value multiple times, due to numerical errors. However, it is guaranteed never to return a negative result. Non-finite valuesIf the dataset contains any non-finite values (
| |
| sampleVariance | back to summary |
|---|---|
| public final double sampleVariance() Returns the unbiased sample variance of the values. If this dataset is a sample drawn from a population, this is an unbiased estimator of the population variance of the population. The count must be greater than one. This is not guaranteed to return zero when the dataset consists of the same value multiple times, due to numerical errors. However, it is guaranteed never to return a negative result. Non-finite valuesIf the dataset contains any non-finite values (
| |
| snapshot | back to summary |
|---|---|
| public Stats snapshot() Returns an immutable snapshot of the current statistics. | |
| sum | back to summary |
|---|---|
| public final double sum() Returns the sum of the values. Non-finite valuesIf the dataset contains | |
| sumOfSquaresOfDeltas | back to summary |
|---|---|
| pack-priv double sumOfSquaresOfDeltas() | |