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

Method compute

output/java_guava/1.4.17/Quantiles.java:358–360  ·  view source on GitHub ↗

Computes the quantile values 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 an unmodifiable m

(Collection<? extends Number> dataset)

Source from the content-addressed store, hash-verified

356
357
358 public Map<Integer, Double> compute(Collection<? extends Number> dataset) {
359 return computeInPlace(Doubles.toArray(dataset));
360 }
361
362 /**
363 * Computes the quantile values 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