Package jdistlib
Class Makeham
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.Makeham
Makeham survival distribution with scale, shape, and constant hazard.
-
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 scale, double shape, double epsilon, boolean lowerTail, boolean logP) doubledensity(double x, boolean logP) static doubledensity(double x, double scale, double shape, double epsilon, boolean giveLog) doublequantile(double p, boolean lowerTail, boolean logP) static doublequantile(double p, double scale, double shape, double epsilon, boolean lowerTail, boolean logP) doublerandom()static doublerandom(double scale, double shape, double epsilon, RandomEngine random) static double[]random(int n, double scale, double shape, double epsilon, 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
-
Makeham
public Makeham(double scale, double shape, double epsilon)
-
-
Method Details
-
density
public static double density(double x, double scale, double shape, double epsilon, boolean giveLog) -
cumulative
public static double cumulative(double x, double scale, double shape, double epsilon, boolean lowerTail, boolean logP) -
quantile
public static double quantile(double p, double scale, double shape, double epsilon, boolean lowerTail, boolean logP) -
random
-
random
public static double[] random(int n, double scale, double shape, double epsilon, RandomEngine random) -
density
public double density(double x, boolean logP) - 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
-