PairedStatsAccumulator#snapshot.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | BYTES
The size of byte array representation in bytes. |
| private static final long | |
| private final double | |
| private final Stats | |
| private final Stats |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| private static double | |
| private static double | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public static PairedStats | fromByteArray(byte[] byteArray)
Creates a |
| public int | |
| public LinearTransformation | leastSquaresFit()
Returns a linear transformation giving the best fit to the data according to Ordinary Least Squares linear
regression of |
| public double | pearsonsCorrelationCoefficient()
Returns the Pearson's or product-moment correlation coefficient of the values. |
| public double | |
| public double | |
| pack-priv double | |
| public byte[] | |
| public String | |
| public Stats | |
| public Stats |
| BYTES | back to summary |
|---|---|
| private static final int BYTES The size of byte array representation in bytes. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sumOfProductsOfDeltas | back to summary |
|---|---|
| private final double sumOfProductsOfDeltas | |
| xStats | back to summary |
|---|---|
| private final Stats xStats | |
| yStats | back to summary |
|---|---|
| private final Stats yStats | |
| PairedStats | back to summary |
|---|---|
| pack-priv PairedStats(Stats xStats, Stats yStats, double sumOfProductsOfDeltas) Internal constructor. Users should use To ensure that the created instance obeys its contract, the parameters should satisfy the following constraints. This is the callers responsibility and is not enforced here.
| |
| 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 static double ensurePositive(double value) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. Note This tests exact equality of the calculated statistics, including the floating
point values. Two instances are guaranteed to be considered equal if one is copied from the
other using | |
| fromByteArray | back to summary |
|---|---|
| public static PairedStats fromByteArray(byte[] byteArray) Creates a Note No guarantees are made regarding stability of the representation between versions. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
Note This hash code is consistent with exact equality of the calculated statistics,
including the floating point values. See the note on
| |
| leastSquaresFit | back to summary |
|---|---|
| public 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 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 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 (
| |
| sumOfProductsOfDeltas | back to summary |
|---|---|
| pack-priv double sumOfProductsOfDeltas() | |
| toByteArray | back to summary |
|---|---|
| public byte[] toByteArray() Gets a byte array representation of this instance. Note No guarantees are made regarding stability of the representation between versions. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| xStats | back to summary |
|---|---|
| public Stats xStats() Returns the statistics on the | |
| yStats | back to summary |
|---|---|
| public Stats yStats() Returns the statistics on the | |