org.apache.mahout.math.jet.random.Gamma.setRandomGenerator()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中org.apache.mahout.math.jet.random.Gamma.setRandomGenerator()方法的一些代码示例,展示了Gamma.setRandomGenerator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gamma.setRandomGenerator()方法的具体详情如下:
包路径:org.apache.mahout.math.jet.random.Gamma
类名称:Gamma
方法名:setRandomGenerator

Gamma.setRandomGenerator介绍

暂无

代码示例

代码示例来源:origin: apache/mahout

/**
 * Constructs a Gamma distribution with a given shape (alpha) and rate (beta).
 *
 * @param alpha The shape parameter.
 * @param rate The rate parameter.
 * @param randomGenerator The random number generator that generates bits for us.
 * @throws IllegalArgumentException if <tt>alpha &lt;= 0.0 || alpha &lt;= 0.0</tt>.
 */
public Gamma(double alpha, double rate, Random randomGenerator) {
 this.alpha = alpha;
 this.rate = rate;
 setRandomGenerator(randomGenerator);
}

代码示例来源:origin: tdunning/bandit-ranking

/**
   * Sets the uniform random generator internally used.
   *
   * @param rand the new PRNG
   */
  @Override
  public void setRandomGenerator(Random rand) {
    gAlpha.setRandomGenerator(rand);
    gBeta.setRandomGenerator(rand);
  }
}

代码示例来源:origin: cloudera/mahout

/**
 * Constructs a Gamma distribution with a given shape (alpha) and rate (beta).
 *
 * @param alpha The shape parameter.
 * @param rate The rate parameter.
 * @param randomGenerator The random number generator that generates bits for us.
 * @throws IllegalArgumentException if <tt>alpha &lt;= 0.0 || alpha &lt;= 0.0</tt>.
 */
public Gamma(double alpha, double rate, Random randomGenerator) {
 this.alpha = alpha;
 this.rate = rate;
 setRandomGenerator(randomGenerator);
}

代码示例来源:origin: org.apache.mahout/mahout-math

/**
 * Constructs a Gamma distribution with a given shape (alpha) and rate (beta).
 *
 * @param alpha The shape parameter.
 * @param rate The rate parameter.
 * @param randomGenerator The random number generator that generates bits for us.
 * @throws IllegalArgumentException if <tt>alpha &lt;= 0.0 || alpha &lt;= 0.0</tt>.
 */
public Gamma(double alpha, double rate, Random randomGenerator) {
 this.alpha = alpha;
 this.rate = rate;
 setRandomGenerator(randomGenerator);
}

相关文章