org.apache.commons.math3.special.Gamma.gamma()方法的使用及代码示例

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

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

Gamma.gamma介绍

[英]Returns the value of ?(x). Based on the NSWC Library of Mathematics Subroutines double precision implementation, DGAMMA.
[中]返回的值?(x) 。基于NSWC数学子程序库双精度实现,DGAMMA。

代码示例

代码示例来源:origin: org.apache.commons/commons-math3

/** {@inheritDoc} */
public double getNumericalVariance() {
  double v = Gamma.gamma(mu + 0.5) / Gamma.gamma(mu);
  return omega * (1 - 1 / mu * v * v);
}

代码示例来源:origin: org.apache.commons/commons-math3

/** {@inheritDoc} */
public double getNumericalMean() {
  return Gamma.gamma(mu + 0.5) / Gamma.gamma(mu) * FastMath.sqrt(omega / mu);
}

代码示例来源:origin: org.apache.commons/commons-math3

/** {@inheritDoc} */
public double density(double x) {
  if (x <= 0) {
    return 0.0;
  }
  return 2.0 * FastMath.pow(mu, mu) / (Gamma.gamma(mu) * FastMath.pow(omega, mu)) *
         FastMath.pow(x, 2 * mu - 1) * FastMath.exp(-mu * x * x / omega);
}

代码示例来源:origin: org.apache.commons/commons-math3

return FastMath.log(Gamma.gamma(a) * Gamma.gamma(b) /
          Gamma.gamma(a + b));

代码示例来源:origin: org.apache.commons/commons-math3

(alpha * Gamma.gamma(alpha));
sum *= Gamma.gamma(alpha) * FastMath.pow(x * 0.5, -alpha);

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/** {@inheritDoc} */
public double getNumericalVariance() {
  double v = Gamma.gamma(mu + 0.5) / Gamma.gamma(mu);
  return omega * (1 - 1 / mu * v * v);
}

代码示例来源:origin: geogebra/geogebra

/** {@inheritDoc} */
public double getNumericalVariance() {
  double v = Gamma.gamma(mu + 0.5) / Gamma.gamma(mu);
  return omega * (1 - 1 / mu * v * v);
}

代码示例来源:origin: senbox-org/s1tbx

KDistributionPDF(final double L, final double mu, final double nu, double scaleFactor) {
  this.L = L;
  this.mu = mu;
  this.nu = nu;
  this.scaleFactor = scaleFactor;
  final double gammaNu = (nu < 1.0) ? (gamma(nu + 1.0) / nu) : gamma(nu);
  ptmp1 = (nu * L * Math.sqrt(Math.PI)) / (Math.sqrt(2.0) * gammaNu * gamma(L));
  z0tmp1 = (mu * (nu - L)) / (2 * nu);
  z0tmp2 = (4.0 * L * nu) / (mu * sq(nu - L));
}

代码示例来源:origin: geogebra/geogebra

/** {@inheritDoc} */
public double getNumericalMean() {
  return Gamma.gamma(mu + 0.5) / Gamma.gamma(mu) * Math.sqrt(omega / mu);
}

代码示例来源:origin: senbox-org/s1tbx

Chi2DistributionPDF(final double n, final double sigma) {
  this.n = n;
  this.sigma = sigma;
  this.denominator = Math.pow(2.0, n) * Math.pow(sigma, 2.0*n) * gamma(n);
  this.twoSigmaSq = 2.0 * sigma * sigma;
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/** {@inheritDoc} */
public double getNumericalMean() {
  return Gamma.gamma(mu + 0.5) / Gamma.gamma(mu) * FastMath.sqrt(omega / mu);
}

代码示例来源:origin: geogebra/geogebra

/** {@inheritDoc} */
public double density(double x) {
  if (x <= 0) {
    return 0.0;
  }
  return 2.0 * Math.pow(mu, mu) / (Gamma.gamma(mu) * Math.pow(omega, mu)) *
         Math.pow(x, 2 * mu - 1) * Math.exp(-mu * x * x / omega);
}

代码示例来源:origin: improbable-research/keanu

public static double logPdf(double a, double b, double x) {
  return a * Math.log(b) + (-a - 1) * Math.log(x) - Math.log(gamma(a)) - (b / x);
}

代码示例来源:origin: io.virtdata/virtdata-lib-realer

/** {@inheritDoc} */
public double density(double x) {
  if (x <= 0) {
    return 0.0;
  }
  return 2.0 * FastMath.pow(mu, mu) / (Gamma.gamma(mu) * FastMath.pow(omega, mu)) *
         FastMath.pow(x, 2 * mu - 1) * FastMath.exp(-mu * x * x / omega);
}

代码示例来源:origin: geogebra/geogebra

(alpha * Gamma.gamma(alpha));
sum *= Gamma.gamma(alpha) * Math.pow(x * 0.5, -alpha);

代码示例来源:origin: geogebra/geogebra

return Math.log(Gamma.gamma(a) * Gamma.gamma(b) /
          Gamma.gamma(a + b));

代码示例来源:origin: io.virtdata/virtdata-lib-realer

return FastMath.log(Gamma.gamma(a) * Gamma.gamma(b) /
          Gamma.gamma(a + b));

代码示例来源:origin: io.virtdata/virtdata-lib-realer

(alpha * Gamma.gamma(alpha));
sum *= Gamma.gamma(alpha) * FastMath.pow(x * 0.5, -alpha);

相关文章