Package jdistlib
Class TruncatedContinuousDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.TruncatedContinuousDistribution
- All Implemented Interfaces:
SupportedDistribution
public final class TruncatedContinuousDistribution
extends GenericDistribution
implements SupportedDistribution
Continuous distribution conditioned to lie in a nonempty interval.
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
ConstructorsConstructorDescriptionTruncatedContinuousDistribution(GenericDistribution base, double lower, double upper) -
Method Summary
Modifier and TypeMethodDescriptiondoublecumulative(double x, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) doubleLog retained mass, also available when the ordinary mass underflows.doubledoubledoubledoublequantile(double p, boolean lowerTail, boolean logP) doublerandom()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
-
TruncatedContinuousDistribution
-
-
Method Details
-
getBaseDistribution
-
getRetainedProbability
public double getRetainedProbability() -
getLogRetainedProbability
public double getLogRetainedProbability()Log retained mass, also available when the ordinary mass underflows. -
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceSupportedDistribution
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceSupportedDistribution
-
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
-