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

Method sampleVariance

output/java_guava/1.4.16/Stats.java:284–290  ·  view source on GitHub ↗

Returns the unbaised 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

()

Source from the content-addressed store, hash-verified

282
283
284 public double sampleVariance() {
285 checkState(count > 1);
286 if (isNaN(sumOfSquaresOfDeltas)) {
287 return NaN;
288 }
289 return ensureNonNegative(sumOfSquaresOfDeltas) / (count - 1);
290 }
291
292 /**
293 * Returns the

Callers 1

Calls 2

checkStateMethod · 0.45
ensureNonNegativeMethod · 0.45

Tested by

no test coverage detected