Package jdistlib
Class BetaNegativeBinomial
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.BetaNegativeBinomial
- All Implemented Interfaces:
SupportedDistribution
public final class BetaNegativeBinomial
extends GenericDistribution
implements SupportedDistribution
Beta-negative-binomial distribution using the extraDistr parameterization.
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecumulative(double x, boolean lowerTail, boolean logP) static doublecumulative(double x, double size, double alpha, double beta, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) static doubledensity(double x, double size, double alpha, double beta, boolean log) doubledoubledoublequantile(double p, boolean lowerTail, boolean logP) static doublequantile(double p, double size, double alpha, double beta, boolean lowerTail, boolean logP) doublerandom()static doublerandom(double size, double alpha, double beta, 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
-
Constructor Details
-
BetaNegativeBinomial
public BetaNegativeBinomial(double size, double alpha, double beta)
-
-
Method Details
-
density
public static double density(double x, double size, double alpha, double beta, boolean log) -
cumulative
public static double cumulative(double x, double size, double alpha, double beta, boolean lowerTail, boolean logP) -
quantile
public static double quantile(double p, double size, double alpha, double beta, boolean lowerTail, boolean logP) -
random
-
density
public double density(double x, boolean log) - Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double x, boolean lowerTail, boolean logP) - Specified by:
cumulativein classGenericDistribution
-
quantile
public double quantile(double p, boolean lowerTail, boolean logP) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-