Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for randomExponent (0.21 sec)

  1. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/math/LongMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.ARRAY_SIZE;
    import static com.google.common.math.MathBenchmarking.RANDOM_SOURCE;
    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/MathBenchmarking.java

        return RANDOM_SOURCE.nextBoolean() ? result : -result;
      }
    
      /** Returns a random integer between zero and {@code MAX_EXPONENT}. */
      static int randomExponent() {
        return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1);
      }
    
      static double randomPositiveDouble() {
        return Math.exp(randomDouble(6));
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        return RANDOM_SOURCE.nextBoolean() ? result : -result;
      }
    
      /** Returns a random integer between zero and {@code MAX_EXPONENT}. */
      static int randomExponent() {
        return RANDOM_SOURCE.nextInt(MAX_EXPONENT + 1);
      }
    
      static double randomPositiveDouble() {
        return Math.exp(randomDouble(6));
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
Back to top