Examples of Binomial


Examples of cern.jet.random.Binomial

    ////                         protected methods                 ////

    /** Method that is called after _randomNumberGenerator is changed.
     */
    protected void _createdNewRandomNumberGenerator() {
        _generator = new Binomial(1, 0.5, _randomNumberGenerator);
    }
View Full Code Here

Examples of cern.jet.random.Binomial

    /** Create a new random number generator.  This method is called
     *  after _randomNumberGenerator is changed.
     */
    protected void _createdNewRandomNumberGenerator() {
        _generator = new Binomial(1, 0.5, _randomNumberGenerator);
    }
View Full Code Here

Examples of org.apache.hadoop.io.file.tfile.RandomDistribution.Binomial

   *          Expected ratio between the most frequent words and the least
   *          frequent words. (e.g. 100)
   */
  public Dictionary(Random random, int entries, int minWordLen, int maxWordLen,
      int freqRatio) {
    Binomial binomial = new Binomial(random, minWordLen, maxWordLen, BINOMIAL_P);
    lead = Math.max(0,
        (int) (entries / (Math.exp(Math.log(freqRatio) / SIGMA) - 1)) - 1);
    zipf = new Zipf(random, lead, entries + lead, 1.1);
    dict = new String[entries];
    // Use a set to ensure no dup words in dictionary
View Full Code Here

Examples of org.apache.hadoop.zebra.tfile.RandomDistribution.Binomial

   *          Expected ratio between the most frequent words and the least
   *          frequent words. (e.g. 100)
   */
  public Dictionary(Random random, int entries, int minWordLen, int maxWordLen,
      int freqRatio) {
    Binomial binomial = new Binomial(random, minWordLen, maxWordLen, BINOMIAL_P);
    lead = Math.max(0,
        (int) (entries / (Math.exp(Math.log(freqRatio) / SIGMA) - 1)) - 1);
    zipf = new Zipf(random, lead, entries + lead, 1.1);
    dict = new String[entries];
    // Use a set to ensure no dup words in dictionary
View Full Code Here

Examples of org.apache.hadoop.zebra.tfile.RandomDistribution.Binomial

   *          Expected ratio between the most frequent words and the least
   *          frequent words. (e.g. 100)
   */
  public Dictionary(Random random, int entries, int minWordLen, int maxWordLen,
      int freqRatio) {
    Binomial binomial = new Binomial(random, minWordLen, maxWordLen, BINOMIAL_P);
    lead = Math.max(0,
        (int) (entries / (Math.exp(Math.log(freqRatio) / SIGMA) - 1)) - 1);
    zipf = new Zipf(random, lead, entries + lead, 1.1);
    dict = new String[entries];
    // Use a set to ensure no dup words in dictionary
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.