distribution
Interface MultivariateMixture

All Superinterfaces:
MultivariateDistribution
All Known Implementing Classes:
BasicMultivariateMixture

public interface MultivariateMixture
extends MultivariateDistribution

Provides a mixture distribution by treating it as a list of MultivariateDistributions.

Author:
dgorur

Method Summary
 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 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.
 
Methods inherited from interface distribution.MultivariateDistribution
densityAt, densityAt, densityAt, densityAt, densityAt, getInputDimension, makeNextSample, makeNextSample, nextSample, nextSample, nextSample, nextSample, setInputDimension, setSeed
 

Method Detail

getComponent

MultivariateDistribution getComponent(int index)
Returns the requested component of this mixture.

Parameters:
index - the index of the required component.
Returns:
the specified component of this mixture.

getComponents

java.util.ArrayList<MultivariateDistribution> getComponents()
Returns the list of components as an ArrayList.

Returns:
a list of components in this mixture.

getMixingPmf

cern.colt.list.DoubleArrayList getMixingPmf()
Returns a DoubleArrayList containing the mixing p.m.f.

Returns:
the mixing p.m.f. for the mixture.

setComponent

void setComponent(int index,
                  MultivariateDistribution dist)
Sets the desired component of the mixing p.m.f.

Parameters:
index - the index of the desired component of the p.m.f.

setComponents

void setComponents(java.util.ArrayList<MultivariateDistribution> components)
Sets the list of components.

Parameters:
components - the given list of components.

setMixingPmf

void setMixingPmf(double[] pmf)
Sets the mixing p.m.f.

Parameters:
pmf - the given mixing p.m.f.

setMixingPmf

void setMixingPmf(cern.colt.matrix.DoubleMatrix1D pmf)
Sets the mixing p.m.f.

Parameters:
pmf - the given mixing p.m.f.