- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Knuth (0.01 sec)
-
android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
} return new MeanAndVariance(mean, sumOfSquaresOfDeltas / values.length); } }, KNUTH { @Override MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm) { if (meanAlgorithm != MeanAlgorithm.KNUTH) { throw new SkipThisScenarioException(); } double mean = values[0]; double s = 0.0;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 4.7K bytes - Viewed (0) -
guava/src/com/google/common/math/Stats.java
while (values.hasNext()) { double value = values.next().doubleValue(); count++; if (isFinite(value) && isFinite(mean)) { // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) mean += (value - mean) / count; } else { mean = calculateNewMeanNonFinite(mean, value); } } return mean; } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 24.8K bytes - Viewed (0) -
guava/src/com/google/common/math/PairedStatsAccumulator.java
/** Adds the given pair of values to the dataset. */ public void add(double x, double y) { // We extend the recursive expression for the one-variable case at Art of Computer Programming // vol. 2, Knuth, 4.2.2, (16) to the two-variable case. We have two value series x_i and y_i. // We define the arithmetic means X_n = 1/n \sum_{i=1}^n x_i, and Y_n = 1/n \sum_{i=1}^n y_i.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 10.4K bytes - Viewed (0) -
android/guava/src/com/google/common/math/StatsAccumulator.java
max = value; if (!isFinite(value)) { sumOfSquaresOfDeltas = NaN; } } else { count++; if (isFinite(value) && isFinite(mean)) { // Art of Computer Programming vol. 2, Knuth, 4.2.2, (15) and (16) double delta = value - mean; mean += delta / count; sumOfSquaresOfDeltas += delta * (value - mean); } else { mean = calculateNewMeanNonFinite(mean, value);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 16:36:11 UTC 2025 - 15.8K bytes - Viewed (0)