Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Prob (0.22 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/cache/expiring_test.go

    		benchmarkExpiringCacheContention(b, 0.1)
    	})
    	b.Run("evict_probablility=1%", func(b *testing.B) {
    		benchmarkExpiringCacheContention(b, 0.01)
    	})
    }
    
    func benchmarkExpiringCacheContention(b *testing.B, prob float64) {
    	const numKeys = 1 << 16
    	cache := NewExpiring()
    
    	keys := []string{}
    	for i := 0; i < numKeys; i++ {
    		key := uuid.New().String()
    		keys = append(keys, key)
    	}
    
    	b.ResetTimer()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 22 15:51:23 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashTestUtils.java

              }
            }
          }
          // measure probability and assert it's within margin of error
          for (int j = 0; j < hashBits; j++) {
            double prob = (double) diff[j] / (double) (diff[j] + same[j]);
            Assert.assertEquals(0.50d, prob, epsilon);
          }
        }
      }
    
      /**
       * Test for 2-bit characteristics. A characteristic is a delta in the input which is repeated in
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  3. src/hash/maphash/smhasher_test.go

    	// sum of coin flips such that a truly random experiment would have
    	// all sums inside those bounds with 99% probability.
    	N := n * hashSize
    	var c float64
    	// find c such that Prob(mean-c*stddev < x < mean+c*stddev)^N > .9999
    	for c = 0.0; math.Pow(math.Erf(c/math.Sqrt(2)), float64(N)) < .9999; c += .1 {
    	}
    	c *= 11.0 // allowed slack: 40% to 60% - we don't need to be perfectly random
    	mean := .5 * REP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/runtime/hash_test.go

    	// sum of coin flips such that a truly random experiment would have
    	// all sums inside those bounds with 99% probability.
    	N := n * hashSize
    	var c float64
    	// find c such that Prob(mean-c*stddev < x < mean+c*stddev)^N > .9999
    	for c = 0.0; math.Pow(math.Erf(c/math.Sqrt(2)), float64(N)) < .9999; c += .1 {
    	}
    	c *= 11.0 // allowed slack: 40% to 60% - we don't need to be perfectly random
    	mean := .5 * REP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2

    Rays became first of all totally reflected, which before at equal Incidences with the rest had suffered the greatest Refraction. And the same thing happens in the Reflexion made by the common Base of the two Prisms in the tenth Experiment. _PROP._ IV. PROB. I. _To separate from one another the heterogeneous Rays of compound Light._ [Illustration: FIG. 23.] The heterogeneous Rays are in some measure separated from one another by the Refraction of the Prism in the third Experiment, and in the fifth Experiment,...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 24 18:26:02 UTC 2018
    - 129.4K bytes
    - Viewed (0)
  6. src/testdata/Isaac.Newton-Opticks.txt

    Incidences with the rest had suffered the greatest Refraction. And the
    same thing happens in the Reflexion made by the common Base of the two
    Prisms in the tenth Experiment.
    
    
    _PROP._ IV. PROB. I.
    
    _To separate from one another the heterogeneous Rays of compound Light._
    
    [Illustration: FIG. 23.]
    
    The heterogeneous Rays are in some measure separated from one another by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 01 16:16:21 UTC 2018
    - 553.9K bytes
    - Viewed (0)
  7. src/encoding/csv/example_test.go

    	in := `first_name,last_name,username
    "Rob","Pike",rob
    Ken,Thompson,ken
    "Robert","Griesemer","gri"
    `
    	r := csv.NewReader(strings.NewReader(in))
    
    	for {
    		record, err := r.Read()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			log.Fatal(err)
    		}
    
    		fmt.Println(record)
    	}
    	// Output:
    	// [first_name last_name username]
    	// [Rob Pike rob]
    	// [Ken Thompson ken]
    	// [Robert Griesemer gri]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 22 11:11:37 UTC 2015
    - 2.6K bytes
    - Viewed (0)
  8. .github/PULL_REQUEST_TEMPLATE

    the Gerrit change.
    
    **Please ensure you adhere to every item in this list.**
    
    More info can be found at https://github.com/golang/go/wiki/CommitMessage
    
    + The PR title is formatted as follows: `net/http: frob the quux before blarfing`
      + The package name goes before the colon
      + The part after the colon uses the verb tense + phrase that completes the blank in,
        "This change modifies Go to ___________"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 02:07:46 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  9. LICENSES/vendor/github.com/robfig/cron/v3/LICENSE

    = vendor/github.com/robfig/cron/v3 licensed under: =
    
    Copyright (C) 2012 Rob Figueiredo
    All Rights Reserved.
    
    MIT LICENSE
    
    Permission is hereby granted, free of charge, to any person obtaining a copy of
    this software and associated documentation files (the "Software"), to deal in
    the Software without restriction, including without limitation the rights to
    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 14 23:03:03 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. src/net/mail/message_test.go

    			`=?utf-8?q?B=C3=B6b_Jac=C3=B6b?= <******@****.***>`,
    		},
    		{ // https://golang.org/issue/12098
    			&Address{Name: "Rob", Address: ""},
    			`"Rob" <@>`,
    		},
    		{ // https://golang.org/issue/12098
    			&Address{Name: "Rob", Address: "@"},
    			`"Rob" <@>`,
    		},
    		{
    			&Address{Name: "Böb, Jacöb", Address: "******@****.***"},
    			`=?utf-8?b?QsO2YiwgSmFjw7Zi?= <******@****.***>`,
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
Back to top