|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdistribution.BasicMultivariateDistribution
distribution.BasicMultivariateMixture
public class BasicMultivariateMixture
Implements the functionality in MultivariateMixture.
| Field Summary |
|---|
| Fields inherited from class distribution.BasicMultivariateDistribution |
|---|
randomEngine |
| Constructor Summary | |
|---|---|
BasicMultivariateMixture()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addComponent(MultivariateDistribution dist)
Adds the given MultivariateDistribution to the list of components
of this mixture. |
double |
densityAt(double[] x)
Computes the density at the given point. |
MultivariateDistribution |
getComponent(int index)
Returns the requested component of this mixture. |
java.util.ArrayList<MultivariateDistribution> |
getComponents()
Returns the list of components as an ArrayList. |
cern.colt.list.DoubleArrayList |
getMixingPmf()
Returns a DoubleArrayList containing the mixing p.m.f. |
void |
nextSample(double[] arr)
Generates the next random sample of this distribution and places the result in the supplied array. |
void |
setComponent(int index,
MultivariateDistribution dist)
Sets the desired component of the mixing p.m.f. |
void |
setComponents(java.util.ArrayList<MultivariateDistribution> components)
Sets the list of components. |
void |
setMixingPmf(double[] pmf)
Sets the mixing p.m.f. |
void |
setMixingPmf(cern.colt.matrix.DoubleMatrix1D pmf)
Sets the mixing p.m.f. |
void |
setSeed(int seed)
Sets the seed for the random number generator of this distribution instance. |
| Methods inherited from class distribution.BasicMultivariateDistribution |
|---|
densityAt, densityAt, densityAt, densityAt, getInputDimension, makeNextSample, makeNextSample, nextSample, nextSample, nextSample, setInputDimension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface distribution.MultivariateDistribution |
|---|
densityAt, densityAt, densityAt, densityAt, getInputDimension, makeNextSample, makeNextSample, nextSample, nextSample, nextSample, setInputDimension |
| Constructor Detail |
|---|
public BasicMultivariateMixture()
| Method Detail |
|---|
public void addComponent(MultivariateDistribution dist)
MultivariateDistribution to the list of components
of this mixture.
dist - the given MultivariateDistribution.public double densityAt(double[] x)
MultivariateDistribution
densityAt in interface MultivariateDistributionx - the given point.
public MultivariateDistribution getComponent(int index)
MultivariateMixture
getComponent in interface MultivariateMixtureindex - the index of the required component.
public java.util.ArrayList<MultivariateDistribution> getComponents()
MultivariateMixtureArrayList.
getComponents in interface MultivariateMixturepublic cern.colt.list.DoubleArrayList getMixingPmf()
MultivariateMixtureDoubleArrayList containing the mixing p.m.f.
getMixingPmf in interface MultivariateMixturepublic void nextSample(double[] arr)
MultivariateDistribution
nextSample in interface MultivariateDistributionarr - array to store the result, cannot be null.
public void setComponent(int index,
MultivariateDistribution dist)
MultivariateMixture
setComponent in interface MultivariateMixtureindex - the index of the desired component of the p.m.f.public void setComponents(java.util.ArrayList<MultivariateDistribution> components)
MultivariateMixture
setComponents in interface MultivariateMixturecomponents - the given list of components.public void setMixingPmf(double[] pmf)
MultivariateMixture
setMixingPmf in interface MultivariateMixturepmf - the given mixing p.m.f.public void setMixingPmf(cern.colt.matrix.DoubleMatrix1D pmf)
MultivariateMixture
setMixingPmf in interface MultivariateMixturepmf - the given mixing p.m.f.public void setSeed(int seed)
MultivariateDistribution
setSeed in interface MultivariateDistributionseed - the given seed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||