- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for nan (0.01 sec)
-
guava/src/com/google/common/math/Stats.java
* the arithmetic mean of the population. * * <h3>Non-finite values</h3> * * <p>If the dataset contains {@link Double#NaN} then the result is {@link Double#NaN}. If it * contains both {@link Double#POSITIVE_INFINITY} and {@link Double#NEGATIVE_INFINITY} then the * result is {@link Double#NaN}. If it contains {@link Double#POSITIVE_INFINITY} and finite values
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
} else { // This is a generalized version of the calculation in add(double, double) above. Note that // non-finite inputs will have sumOfProductsOfDeltas = NaN, so non-finite values will result // in NaN naturally. sumOfProductsOfDeltas += values.sumOfProductsOfDeltas() + (values.xStats().mean() - xStats.mean()) * (values.yStats().mean() - yStats.mean())Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 08 18:35:13 UTC 2025 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/DoubleMathTest.java
assertFalse(DoubleMath.fuzzyEquals(a, Double.NaN, tolerance)); assertFalse(DoubleMath.fuzzyEquals(Double.NaN, a, tolerance)); } } } public void testFuzzyEqualsTwoNaNs() { for (double tolerance : TOLERANCE_CANDIDATES) { assertTrue(DoubleMath.fuzzyEquals(Double.NaN, Double.NaN, tolerance)); } } public void testFuzzyEqualsZeroTolerance() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 14:15:36 UTC 2025 - 27.3K bytes - Viewed (0) -
tests/test_allow_inf_nan_in_enforcing.py
("-inf", 200), ("nan", 200), ("0", 200), ("342", 200), ], ) def test_allow_inf_nan_param_default(value: str, code: int): response = client.post(f"/?z={value}") assert response.status_code == code, response.text @pytest.mark.parametrize( "value,code", [ ("-1", 200), ("inf", 422), ("-inf", 422), ("nan", 422), ("0", 200),Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
.that(Doubles.indexOf(new double[] {5.0, value, value, 5.0}, new double[] {value, value})) .isEqualTo(1); } assertThat(Doubles.indexOf(new double[] {5.0, NaN, NaN, 5.0}, new double[] {NaN, NaN})) .isEqualTo(-1); } public void testLastIndexOf() { assertThat(Doubles.lastIndexOf(EMPTY, 1.0)).isEqualTo(-1); assertThat(Doubles.lastIndexOf(ARRAY1, 2.0)).isEqualTo(-1);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 30.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
assertFalse(DoubleMath.fuzzyEquals(a, Double.NaN, tolerance)); assertFalse(DoubleMath.fuzzyEquals(Double.NaN, a, tolerance)); } } } public void testFuzzyEqualsTwoNaNs() { for (double tolerance : TOLERANCE_CANDIDATES) { assertTrue(DoubleMath.fuzzyEquals(Double.NaN, Double.NaN, tolerance)); } } public void testFuzzyEqualsZeroTolerance() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Oct 30 14:15:36 UTC 2025 - 27.3K bytes - Viewed (0) -
android/guava/src/com/google/common/math/LinearTransformation.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 9.7K bytes - Viewed (0) -
guava/src/com/google/common/math/PairedStats.java
* * <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() { checkState(count() != 0); return sumOfProductsOfDeltas / count(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 12.6K bytes - Viewed (0) -
fastapi/encoders.py
Our Id type is a prime example of this. >>> decimal_encoder(Decimal("1.0")) 1.0 >>> decimal_encoder(Decimal("1")) 1 >>> decimal_encoder(Decimal("NaN")) nan """ exponent = dec_value.as_tuple().exponent if isinstance(exponent, int) and exponent >= 0: return int(dec_value) else: return float(dec_value)Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 10.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/QuantilesTest.java
.comparingValuesUsing(QUANTILE_CORRESPONDENCE) .containsExactly( 0, NaN, 1, NaN, 2, NaN, 8, NaN, 9, NaN, 10, NaN); } public void testScale_index_compute_doubleCollection_nan() { assertThat(Quantiles.scale(10).index(5).compute(ONE_TO_FIVE_AND_NAN)).isNaN(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.8K bytes - Viewed (0)