java.lang.Object
riso.distributions.AbstractConditionalDistribution
riso.distributions.ConditionalMixture
- All Implemented Interfaces:
- ConditionalDistribution, java.io.Serializable
- public abstract class ConditionalMixture
- extends AbstractConditionalDistribution
An instance of this class represents a conditional mixture model.
This is similar to an unconditional mixture (represented by the
Mixture class), but the mixing coefficients can vary with
the context (i.e., the parent variables). In the Mixture class,
mixing coefficients are stored in an array, since they don't change;
here, each mixing coefficient is returned by a function that takes the
context as an argument. In addition, the mixture components are
conditional distributions, not unconditional.
This class is declared abstract (i.e., it cannot be
instantiated) because there is no generic way to compute the mixing
coefficient function; each derived class implements that in its own way.
|
Method Summary |
abstract double |
mixing_coefficient(int i,
double[] c)
Returns the mixing coefficient for the i'th component,
given the parent context c. |
components
public ConditionalDistribution[] components
- This array contains a reference to each mixture component.
Each component is a conditional distribution.
ConditionalMixture
public ConditionalMixture()
mixing_coefficient
public abstract double mixing_coefficient(int i,
double[] c)
- Returns the mixing coefficient for the i'th component,
given the parent context c.