| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private final StatsAccumulator | |
| private final StatsAccumulator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addAll(PairedStats values)
Adds the given statistics to the dataset, as if the individual values used to compute the statistics had been added directly. |
| public long | |
| private static double | |
| private double | |
| public final LinearTransformation | leastSquaresFit()
Returns a linear transformation giving the best fit to the data according to Ordinary Least Squares linear
regression of |
| public final double | pearsonsCorrelationCoefficient()
Returns the Pearson's or product-moment correlation coefficient of the values. |
| public double | |
| public final double | |
| public PairedStats | |
| public Stats | |
| public Stats |
| sumOfProductsOfDeltas | back to summary |
|---|---|
| private double sumOfProductsOfDeltas | |
| xStats | back to summary |
|---|---|
| private final StatsAccumulator xStats | |
| yStats | back to summary |
|---|---|
| private final StatsAccumulator yStats | |
| PairedStatsAccumulator | back to summary |
|---|---|
| public PairedStatsAccumulator() | |
| add | back to summary |
|---|---|
| public void add(double x, double y) Adds the given pair of values to the dataset. | |
| addAll | back to summary |
|---|---|
| public void addAll(PairedStats values) Adds the given statistics to the dataset, as if the individual values used to compute the statistics had been added directly. | |
| count | back to summary |
|---|---|
| public long count() Returns the number of pairs in the dataset. | |
| ensureInUnitRange | back to summary |
|---|---|
| private static double ensureInUnitRange(double value) | |
| ensurePositive | back to summary |
|---|---|
| private double ensurePositive(double value) | |
| leastSquaresFit | back to summary |
|---|---|
| public final LinearTransformation leastSquaresFit() Returns a linear transformation giving the best fit to the data according to Ordinary Least Squares linear
regression of This fit minimizes the root-mean-square error in The corresponding root-mean-square error in Non-finite valuesIf the dataset contains any non-finite values (
| |
| pearsonsCorrelationCoefficient | back to summary |
|---|---|
| public final double pearsonsCorrelationCoefficient() Returns the Pearson's or
product-moment correlation coefficient of the values. The count must greater than one, and
the Non-finite valuesIf the dataset contains any non-finite values (
| |
| populationCovariance | back to summary |
|---|---|
| public double populationCovariance() Returns the population covariance of the values. The count must be non-zero. This is guaranteed to return zero if the dataset contains a single pair of finite values. It is not guaranteed to return zero when the dataset consists of the same pair of values multiple times, due to numerical errors. Non-finite valuesIf the dataset contains any non-finite values (
| |
| sampleCovariance | back to summary |
|---|---|
| public final double sampleCovariance() Returns the sample covariance of the values. The count must be greater than one. This is not guaranteed to return zero when the dataset consists of the same pair of values multiple times, due to numerical errors. Non-finite valuesIf the dataset contains any non-finite values (
| |
| snapshot | back to summary |
|---|---|
| public PairedStats snapshot() Returns an immutable snapshot of the current statistics. | |
| xStats | back to summary |
|---|---|
| public Stats xStats() Returns an immutable snapshot of the statistics on the | |
| yStats | back to summary |
|---|---|
| public Stats yStats() Returns an immutable snapshot of the statistics on the | |