- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for POSITIVE_INFINITY (0.08 seconds)
-
guava-tests/test/com/google/common/math/QuantilesTest.java
.containsExactly( 0, NEGATIVE_INFINITY, 1, NaN, // interpolating between NEGATIVE_ and POSITIVE_INFINITY values 2, POSITIVE_INFINITY, 8, POSITIVE_INFINITY, 9, POSITIVE_INFINITY, // interpolating between two POSITIVE_INFINITY values 10, POSITIVE_INFINITY); } public void testScale_indexes_varargs_compute_doubleCollection_nan() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/QuantilesTest.java
.containsExactly( 0, NEGATIVE_INFINITY, 1, NaN, // interpolating between NEGATIVE_ and POSITIVE_INFINITY values 2, POSITIVE_INFINITY, 8, POSITIVE_INFINITY, 9, POSITIVE_INFINITY, // interpolating between two POSITIVE_INFINITY values 10, POSITIVE_INFINITY); } public void testScale_indexes_varargs_compute_doubleCollection_nan() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testRoundInfiniteToIntAlwaysFails() { for (RoundingMode mode : ALL_ROUNDING_MODES) { assertThrows( ArithmeticException.class, () -> DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode)); assertThrows( ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode)); } } @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testRoundInfiniteToIntAlwaysFails() { for (RoundingMode mode : ALL_ROUNDING_MODES) { assertThrows( ArithmeticException.class, () -> DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode)); assertThrows( ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NEGATIVE_INFINITY, mode)); } } @GwtIncompatible // DoubleMath.roundToLong(double, RoundingMode)
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 27.3K bytes - Click Count (0) -
guava/src/com/google/common/math/PairedStatsAccumulator.java
* times, due to numerical errors. * * <h3>Non-finite values</h3> * * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link * Double#NEGATIVE_INFINITY}, or {@link Double#NaN}) then the result is {@link Double#NaN}. * * @throws IllegalStateException if the dataset is empty */ public double populationCovariance() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 08 18:35:13 GMT 2025 - 10.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
assertThrows(IllegalStateException.class, () -> EMPTY_PAIRED_STATS.populationCovariance()); assertThat(ONE_VALUE_PAIRED_STATS.populationCovariance()).isEqualTo(0.0); assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN(); assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN(); assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 14K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
assertThrows(IllegalStateException.class, () -> EMPTY_PAIRED_STATS.populationCovariance()); assertThat(ONE_VALUE_PAIRED_STATS.populationCovariance()).isEqualTo(0.0); assertThat(createSingleStats(Double.POSITIVE_INFINITY, 1.23).populationCovariance()).isNaN(); assertThat(createSingleStats(Double.NEGATIVE_INFINITY, 1.23).populationCovariance()).isNaN(); assertThat(createSingleStats(Double.NaN, 1.23).populationCovariance()).isNaN();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 14K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertEvents("R0.00", "R1.00", "R1.00"); limiter.setRate(Double.POSITIVE_INFINITY); limiter.acquire(); limiter.acquire(); limiter.acquire(); assertEvents("R1.00", "R0.00", "R0.00"); } public void testInfinity_warmUpTimeElapsed() { RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, 10, SECONDS, 3.0, stopwatch); stopwatch.instant += 1000000; limiter.setRate(1.0);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 21.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertEvents("R0.00", "R1.00", "R1.00"); limiter.setRate(Double.POSITIVE_INFINITY); limiter.acquire(); limiter.acquire(); limiter.acquire(); assertEvents("R1.00", "R0.00", "R0.00"); } public void testInfinity_warmUpTimeElapsed() { RateLimiter limiter = RateLimiter.create(Double.POSITIVE_INFINITY, 10, SECONDS, 3.0, stopwatch); stopwatch.instant += 1000000; limiter.setRate(1.0);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 21.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java
new RoundToDoubleTester(maxDoubleAsBigDecimal) .setExpectation(Double.MAX_VALUE, DOWN, FLOOR, HALF_EVEN, HALF_UP, HALF_DOWN) .setExpectation(Double.POSITIVE_INFINITY, UP, CEILING) .roundUnnecessaryShouldThrow() .test(); } public void testRoundToDouble_wayTooBig() { BigDecimal bi = BigDecimal.valueOf(2).pow(2 * Double.MAX_EXPONENT);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Nov 19 01:35:24 GMT 2025 - 11K bytes - Click Count (0)