本文整理了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
暂无
代码示例来源: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 <= 0.0 || alpha <= 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 <= 0.0 || alpha <= 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 <= 0.0 || alpha <= 0.0</tt>.
*/
public Gamma(double alpha, double rate, Random randomGenerator) {
this.alpha = alpha;
this.rate = rate;
setRandomGenerator(randomGenerator);
}
内容来源于网络,如有侵权,请联系作者删除!