Package jdistlib
Class MixtureDistribution
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.MixtureDistribution
- All Implemented Interfaces:
AtomAwareDistribution,SupportedDistribution
public final class MixtureDistribution
extends GenericDistribution
implements SupportedDistribution, AtomAwareDistribution
Normalized finite mixture of scalar distribution objects.
-
Field Summary
Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleatomProbability(double x) ReturnsP(X = x); zero means no declared atom atx.doublecumulative(double x, boolean lowerTail, boolean logP) doubledensity(double x, boolean log) doubledoubledouble[]doublequantile(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
-
MixtureDistribution
-
-
Method Details
-
getComponents
-
getWeights
public double[] getWeights() -
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
-
atomProbability
public double atomProbability(double x) Description copied from interface:AtomAwareDistributionReturnsP(X = x); zero means no declared atom atx.- Specified by:
atomProbabilityin interfaceAtomAwareDistribution
-
quantile
public double quantile(double p, boolean lowerTail, boolean logP) - Specified by:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-