Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Algorithms (0.19 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);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      //  - Some providers may choose to also include alias names.
      //  - For example, the "SHA-1" algorithm might be referred to as "SHA1".
      //  - The algorithm name is not case-sensitive.
      private static final ImmutableMap<String, HashFunction> ALGORITHMS =
          new ImmutableMap.Builder<String, HashFunction>()
              .put("MD5", Hashing.md5())
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import java.util.Random;
    
    /** Benchmarks some algorithms providing the same functionality as {@link Quantiles}. */
    public class QuantilesBenchmark {
    
      private static final ContiguousSet<Integer> ALL_DECILE_INDEXES =
          ContiguousSet.create(Range.closed(0, 10), DiscreteDomain.integers());
    
      @Param({"10", "100", "1000", "10000", "100000"})
      int datasetSize;
    
      @Param QuantilesAlgorithm algorithm;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

    import com.google.caliper.Param;
    import com.google.caliper.api.SkipThisScenarioException;
    import com.google.common.primitives.Doubles;
    import java.util.Random;
    
    /**
     * Benchmarks for various algorithms for computing the mean and/or variance.
     *
     * @author Louis Wasserman
     */
    public class StatsBenchmark {
    
      enum MeanAlgorithm {
        SIMPLE {
          @Override
          double mean(double[] values) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

    import com.google.caliper.Param;
    import com.google.caliper.api.SkipThisScenarioException;
    import com.google.common.primitives.Doubles;
    import java.util.Random;
    
    /**
     * Benchmarks for various algorithms for computing the mean and/or variance.
     *
     * @author Louis Wasserman
     */
    public class StatsBenchmark {
    
      enum MeanAlgorithm {
        SIMPLE {
          @Override
          double mean(double[] values) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  6. 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);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

    import java.util.Map;
    
    /**
     * Enumerates several algorithms providing equivalent functionality to {@link Quantiles}, for use in
     * {@link QuantilesBenchmark}. These algorithms each calculate either a single quantile or multiple
     * quantiles. All algorithms modify the dataset they are given (the cost of a copy to avoid this
     * will be constant across algorithms).
     *
     * @author Pete Gillin
     * @since 20.0
     */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java

    import java.util.Map;
    
    /**
     * Enumerates several algorithms providing equivalent functionality to {@link Quantiles}, for use in
     * {@link QuantilesBenchmark}. These algorithms each calculate either a single quantile or multiple
     * quantiles. All algorithms modify the dataset they are given (the cost of a copy to avoid this
     * will be constant across algorithms).
     *
     * @author Pete Gillin
     * @since 20.0
     */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/PredecessorsFunction.java

       * {@code node}'s incoming edges <i>against</i> the direction (if any) of the edge.
       *
       * <p>Some algorithms that operate on a {@code PredecessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/SuccessorsFunction.java

       * edges". For that functionality, see {@link Graphs#reachableNodes(Graph, Object)}.
       *
       * <p>Some algorithms that operate on a {@code SuccessorsFunction} may produce undesired results
       * if the returned {@link Iterable} contains duplicate elements. Implementations of such
       * algorithms should document their behavior in the presence of duplicates.
       *
       * <p>The elements of the returned {@code Iterable} must each be:
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.3K bytes
    - Viewed (0)
Back to top