Package jdistlib
Class Gamma
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.Gamma
- All Implemented Interfaces:
TransformDistribution,SupportedDistribution
public class Gamma
extends GenericDistribution
implements SupportedDistribution, TransformDistribution
-
Field Summary
FieldsFields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecumulative(double p, boolean lower_tail, boolean log_p) static final doublecumulative(double x, double alph, double scale, boolean lower_tail, boolean log_p) doubledensity(double x, boolean log) static final doubledensity(double x, double shape, double scale, boolean give_log) doubledoublelogCharacteristic(double frequency) logMomentGenerating(double argument) doublequantile(double q, boolean lower_tail, boolean log_p) static final doublequantile(double p, double alpha, double scale, boolean lower_tail, boolean log_p) doublerandom()static final doublerandom(double a, double scale, RandomEngine random) static final double[]random(int n, double a, double scale, RandomEngine random) Methods inherited from class jdistlib.generic.GenericDistribution
copyBackward, cumulative, cumulative, cumulative, cumulative_hazard, cumulative_hazard, cumulativeInto, density, density, densityInto, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, quantileInto, random, random, randomInto, setRandomEngine, survival, survival, survival
-
Field Details
-
shape
protected double shape -
scale
protected double scale
-
-
Constructor Details
-
Gamma
public Gamma(double shape, double scale)
-
-
Method Details
-
density
public static final double density(double x, double shape, double scale, boolean give_log) -
cumulative
public static final double cumulative(double x, double alph, double scale, boolean lower_tail, boolean log_p) -
quantile
public static final double quantile(double p, double alpha, double scale, boolean lower_tail, boolean log_p) -
random
-
random
-
density
public double density(double x, boolean log) - Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double p, boolean lower_tail, boolean log_p) - Specified by:
cumulativein classGenericDistribution
-
quantile
public double quantile(double q, boolean lower_tail, boolean log_p) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
logCharacteristic
- Specified by:
logCharacteristicin interfaceTransformDistribution
-
logMomentGenerating
- Specified by:
logMomentGeneratingin interfaceTransformDistribution
-
momentGeneratingDomain
- Specified by:
momentGeneratingDomainin interfaceTransformDistribution
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-