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

Method compute

output/java_guava/1.4.17/Quantiles.java:247–249  ·  view source on GitHub ↗

Computes the quantile value of the given dataset. @param dataset the dataset to do the calculation on, which must be non-empty, which will be cast to doubles (with any associated lost of precision), and which will not be mutated by this call (it is copied instead) @return the quantile value

(Collection<? extends Number> dataset)

Source from the content-addressed store, hash-verified

245
246
247 public double compute(Collection<? extends Number> dataset) {
248 return computeInPlace(Doubles.toArray(dataset));
249 }
250
251 /**
252 * Computes the quantile value of the given dataset.

Callers

nothing calls this directly

Calls 5

computeInPlaceMethod · 0.95
toArrayMethod · 0.95
cloneMethod · 0.45
longsToDoublesMethod · 0.45
intsToDoublesMethod · 0.45

Tested by

no test coverage detected