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.
()
| 107 | |
| 108 | |
| 109 | public double populationCovariance() { |
| 110 | checkState(count() != 0); |
| 111 | return sumOfProductsOfDeltas / count(); |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Returns the sample covariance of the values. The count must be greater than one. |
no test coverage detected