MCPcopy Create free account
hub / github.com/antlr/codebuff / populationCovariance

Method populationCovariance

output/java_guava/1.4.16/PairedStats.java:109–112  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.

Callers 1

toStringMethod · 0.95

Calls 2

countMethod · 0.95
checkStateMethod · 0.45

Tested by

no test coverage detected