@Test public void testGamma(){ double g1=Gamma.gamma(10); double g2=SpecialFunctions.gamma(10); for (double d=0.1; d<10; d+=.01){ assertEquals(Gamma.gamma(d), SpecialFunctions.gamma(d), 1e-3); } }
public Gamma(double alpha, double beta) { this.alpha = alpha; this.beta = beta; }
Gamma implements IContinuousDistribution { public Gamma(double alpha, double beta) { this.alpha = alpha; this.beta = beta; } }
Gamma implements IContinuousDistribution { public Gamma(double alpha, double beta) { this.alpha = alpha; this.beta = beta; } Gamma(double alpha, double beta); }
Gamma implements IContinuousDistribution { public Gamma(double alpha, double beta) { this.alpha = alpha; this.beta = beta; } Gamma(double alpha, double beta); @Override double getDensity(double x); double getShape(); double getScale(); @Override double getLeftBound(); @Override double getRightBound(); @Override String getDescription(); @Override double getExpectation(); @Override double getProbability(double x, ProbabilityType pt); @Override double getProbabilityInverse(double p, ProbabilityType pt); @Override double getVariance(); @Override BoundaryType hasLeftBound(); @Override BoundaryType hasRightBound(); @Override boolean isSymmetrical(); @Override double random(IRandomNumberGenerator rng); static double beta(double a, double b); static double gamma(double x); static double incompleteBeta(double aa, double bb, double xx); static double incompleteBetaFraction1(double a, double b, double x); static double incompleteGamma(double a, double x); static double incompleteGammaComplement(double a, double x); static double logGamma(double x); }
Gamma implements IContinuousDistribution { public Gamma(double alpha, double beta) { this.alpha = alpha; this.beta = beta; } Gamma(double alpha, double beta); @Override double getDensity(double x); double getShape(); double getScale(); @Override double getLeftBound(); @Override double getRightBound(); @Override String getDescription(); @Override double getExpectation(); @Override double getProbability(double x, ProbabilityType pt); @Override double getProbabilityInverse(double p, ProbabilityType pt); @Override double getVariance(); @Override BoundaryType hasLeftBound(); @Override BoundaryType hasRightBound(); @Override boolean isSymmetrical(); @Override double random(IRandomNumberGenerator rng); static double beta(double a, double b); static double gamma(double x); static double incompleteBeta(double aa, double bb, double xx); static double incompleteBetaFraction1(double a, double b, double x); static double incompleteGamma(double a, double x); static double incompleteGammaComplement(double a, double x); static double logGamma(double x); static final double MAXGAM; }