Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for singleQuantile (0.72 sec)

  1. android/guava-tests/test/com/google/common/math/QuantilesAlgorithmTest.java

        }
      }
    
      public void testSingleQuantile_median() {
        double referenceValue = REFERENCE_ALGORITHM.singleQuantile(1, 2, dataset.clone());
        for (QuantilesAlgorithm algorithm : NON_REFERENCE_ALGORITHMS) {
          assertWithMessage("Mismatch between %s and %s", algorithm, REFERENCE_ALGORITHM)
              .that(algorithm.singleQuantile(1, 2, dataset.clone()))
              .isWithin(ALLOWED_ERROR)
              .of(referenceValue);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      double median(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(1, 2, dataset(i));
        }
        return dummy;
      }
    
      @Benchmark
      double percentile90(int reps) {
        double dummy = 0.0;
        for (int i = 0; i < reps; i++) {
          dummy += algorithm.singleQuantile(90, 100, dataset(i));
        }
        return dummy;
      }
    
      @Benchmark
      double percentile99(int reps) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

          for (int index : indexes) {
            builder.put(index, singleQuantile(index, scale, dataset));
          }
          return builder.buildOrThrow();
        }
      },
    
      /** Uses {@link Quantiles}. */
      TARGET {
    
        @Override
        double singleQuantile(int index, int scale, double[] dataset) {
          return Quantiles.scale(scale).index(index).computeInPlace(dataset);
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
Back to top