- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,784 for nmPath (0.11 sec)
-
pkg/test/loadbalancersim/timeseries/data.go
// See the License for the specific language governing permissions and // limitations under the License. package timeseries import ( "math" "sort" ) var ( negativeInfinity = math.Inf(-1) infinity = math.Inf(1) nan = math.NaN() ) type Data []float64 func (d Data) Min() float64 { return d.sorted().min() } func (d Data) Max() float64 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 03 18:19:25 UTC 2022 - 2.1K bytes - Viewed (0) -
src/image/draw/example_test.go
import ( "fmt" "image" "image/color" "image/draw" "math" ) func ExampleDrawer_floydSteinberg() { const width = 130 const height = 50 im := image.NewGray(image.Rectangle{Max: image.Point{X: width, Y: height}}) for x := 0; x < width; x++ { for y := 0; y < height; y++ { dist := math.Sqrt(math.Pow(float64(x-width/2), 2)/3+math.Pow(float64(y-height/2), 2)) / (height / 1.5) * 255 var gray uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 1.1K bytes - Viewed (0) -
test/fixedbugs/issue14651.go
func f64(x float64) float64 { return float64(x) } func test32(a, b float32) { abits := math.Float32bits(a) bbits := math.Float32bits(b) if abits != bbits { panic(fmt.Sprintf("%08x != %08x\n", abits, bbits)) } } func test64(a, b float64) { abits := math.Float64bits(a) bbits := math.Float64bits(b) if abits != bbits { panic(fmt.Sprintf("%016x != %016x\n", abits, bbits)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 22 17:09:29 UTC 2016 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go
// choose a single representation for all NaN values. For the purposes of this test, // all NaN representations are equivalent. func(a float64, b float64) bool { if math.IsNaN(a) && math.IsNaN(b) { return true } return math.Float64bits(a) == math.Float64bits(b) }, ) const ( reasonArrayFixedLength = "indefinite-length arrays are re-encoded with fixed length"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 15 18:59:36 UTC 2024 - 15.8K bytes - Viewed (0) -
src/math/big/sqrt_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package big import ( "fmt" "math" "math/rand" "testing" ) // TestFloatSqrt64 tests that Float.Sqrt of numbers with 53bit mantissa // behaves like float math.Sqrt. func TestFloatSqrt64(t *testing.T) { for i := 0; i < 1e5; i++ { if i == 1e2 && testing.Short() { break } r := rand.Float64()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 4.8K bytes - Viewed (0) -
test/typeparam/ordered.go
func _OrderedSlice[Elem Ordered](s []Elem) { sort.Sort(orderedSlice[Elem](s)) } var ints = []int{74, 59, 238, -784, 9845, 959, 905, 0, 0, 42, 7586, -5467984, 7586} var float64s = []float64{74.3, 59.0, math.Inf(1), 238.2, -784.0, 2.3, math.NaN(), math.NaN(), math.Inf(-1), 9845.768, -959.7485, 905, 7.8, 7.8} var strings = []string{"", "Hello", "foo", "bar", "foo", "f00", "%*&^*&^&", "***"} func TestSortOrderedInts() bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 2.2K bytes - Viewed (0) -
test/fixedbugs/issue13539.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 21:10:19 UTC 2022 - 417 bytes - Viewed (0) -
src/go/internal/gccgoimporter/gccgoinstallation_test.go
"image/draw", "image/gif", "image", "image/jpeg", "image/png", "index/suffixarray", "io", "io/ioutil", "log", "log/syslog", "math/big", "math/cmplx", "math", "math/rand", "mime", "mime/multipart", "net", "net/http/cgi", // "net/http/cookiejar", // Added in GCC 4.8. "net/http/fcgi", "net/http", "net/http/httptest",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 21 02:25:41 UTC 2021 - 4K bytes - Viewed (0) -
src/math/rand/normal.go
if i == 0 { // This extra work is only required for the base strip. for { x = -math.Log(r.Float64()) * (1.0 / rn) y := -math.Log(r.Float64()) if y+y >= x*x { break } } if j > 0 { return rn + x } return -rn - x } if fn[i]+float32(r.Float64())*(fn[i-1]-fn[i]) < float32(math.Exp(-.5*x*x)) { return x } } } var kn = [128]uint32{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
* limitations under the License. */ package com.google.common.math; import static com.google.common.math.MathTesting.ALL_INTEGER_CANDIDATES; import static com.google.common.math.MathTesting.ALL_ROUNDING_MODES; import static com.google.common.math.MathTesting.ALL_SAFE_ROUNDING_MODES; import static com.google.common.math.MathTesting.EXPONENTS; import static com.google.common.math.MathTesting.NEGATIVE_INTEGER_CANDIDATES;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 07 17:50:39 UTC 2024 - 24.5K bytes - Viewed (0)