Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 77 for isChan (0.31 sec)

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

        assertThat(transformation.isHorizontal()).isFalse();
        assertThat(transformation.isVertical()).isFalse();
        assertThat(transformation.slope()).isNaN();
        assertThat(transformation.transform(0.0)).isNaN();
        assertThat(transformation.inverse()).isSameInstanceAs(transformation);
      }
    
      /**
       * Creates a {@link PairedStats} from with the given lists of {@code x} and {@code y} values,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 09 22:49:56 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/Stats.java

    import static com.google.common.primitives.Doubles.isFinite;
    import static java.lang.Double.NaN;
    import static java.lang.Double.doubleToLongBits;
    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.MoreObjects;
    import com.google.common.base.Objects;
    import java.io.Serializable;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. src/syscall/js/js_test.go

    	}
    	if dummys.Get("someFloat").Equal(dummys.Get("someInt")) {
    		t.Errorf("different values are not unequal")
    	}
    }
    
    func TestNaN(t *testing.T) {
    	if !dummys.Get("NaN").IsNaN() {
    		t.Errorf("JS NaN is not NaN")
    	}
    	if !js.ValueOf(math.NaN()).IsNaN() {
    		t.Errorf("Go NaN is not NaN")
    	}
    	if dummys.Get("NaN").Equal(dummys.Get("NaN")) {
    		t.Errorf("NaN is equal to NaN")
    	}
    }
    
    func TestUndefined(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      //   - thinks +0.0 and -0.0 are 0 DLP's apart.
      bool AlmostEquals(const FloatingPoint& rhs) const {
        // The IEEE standard says that any comparison operation involving
        // a NAN must return false.
        if (is_nan() || rhs.is_nan()) return false;
    
        return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_)
            <= kMaxUlps;
      }
    
     private:
      // The data type used to store the actual floating-point number.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 43.1K bytes
    - Viewed (0)
  5. src/syscall/js/js.go

    func Null() Value {
    	return valueNull
    }
    
    // IsNull reports whether v is the JavaScript value "null".
    func (v Value) IsNull() bool {
    	return v.ref == valueNull.ref
    }
    
    // IsNaN reports whether v is the JavaScript value "NaN".
    func (v Value) IsNaN() bool {
    	return v.ref == valueNaN.ref
    }
    
    // Global returns the JavaScript global object, usually "window" or "global".
    func Global() Value {
    	return valueGlobal
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  6. src/slices/slices_test.go

    func equal[T comparable](v1, v2 T) bool {
    	return v1 == v2
    }
    
    // equalNaN is like == except that all NaNs are equal.
    func equalNaN[T comparable](v1, v2 T) bool {
    	isNaN := func(f T) bool { return f != f }
    	return v1 == v2 || (isNaN(v1) && isNaN(v2))
    }
    
    // offByOne returns true if integers v1 and v2 differ by 1.
    func offByOne(v1, v2 int) bool {
    	return v1 == v2+1 || v1 == v2-1
    }
    
    func TestEqualFunc(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      //   - thinks +0.0 and -0.0 are 0 DLP's apart.
      bool AlmostEquals(const FloatingPoint& rhs) const {
        // The IEEE standard says that any comparison operation involving
        // a NAN must return false.
        if (is_nan() || rhs.is_nan()) return false;
    
        return DistanceBetweenSignAndMagnitudeNumbers(u_.bits_, rhs.u_.bits_)
            <= kMaxUlps;
      }
    
     private:
      // The data type used to store the actual floating-point number.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  8. src/strconv/atof_test.go

    	for _, test := range atofRandomTests {
    		x, _ := ParseFloat(test.s, 64)
    		switch {
    		default:
    			t.Errorf("number %s badly parsed as %b (expected %b)", test.s, x, test.x)
    		case x == test.x:
    		case math.IsNaN(test.x) && math.IsNaN(x):
    		}
    	}
    	t.Logf("tested %d random numbers", len(atofRandomTests))
    }
    
    var roundTripCases = []struct {
    	f float64
    	s string
    }{
    	// Issue 2917.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 23.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    		_, err := rand.Read(b)
    		if err != nil {
    			panic(fmt.Sprintf("rand.Read failed: %v", err))
    		}
    		// and turn it into a float64
    		x := math.Float64frombits(binary.LittleEndian.Uint64(b))
    		if math.IsNaN(x) || math.IsInf(x, 0) {
    			continue
    		}
    		x = math.Abs(x)
    		if x < 0x1p-1000 { // avoid underflow patterns
    			continue
    		}
    		frac, _ := math.Frexp(x) // 52 bits of randomness
    		return frac*2 - 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. src/math/lgamma.go

    		Tf    = -1.21486290535849611461e-01 // 0xBFBF19B9BCC38A42
    		// Tt = -(tail of Tf)
    		Tt = -3.63867699703950536541e-18 // 0xBC50C7CAA48A971F
    	)
    	// special cases
    	sign = 1
    	switch {
    	case IsNaN(x):
    		lgamma = x
    		return
    	case IsInf(x, 0):
    		lgamma = x
    		return
    	case x == 0:
    		lgamma = Inf(1)
    		return
    	}
    
    	neg := false
    	if x < 0 {
    		x = -x
    		neg = true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 11K bytes
    - Viewed (0)
Back to top