Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

riso.distributions
Class ConditionalMixture  view ConditionalMixture download ConditionalMixture.java

java.lang.Object
  extended byriso.distributions.AbstractConditionalDistribution
      extended byriso.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.


Field Summary
 ConditionalDistribution[] components
          This array contains a reference to each mixture component.
 
Fields inherited from class riso.distributions.AbstractConditionalDistribution
associated_variable
 
Constructor Summary
ConditionalMixture()
           
 
Method Summary
abstract  double mixing_coefficient(int i, double[] c)
          Returns the mixing coefficient for the i'th component, given the parent context c.
 
Methods inherited from class riso.distributions.AbstractConditionalDistribution
clone, get_nstates, parse_string, pretty_input, pretty_output, set_variable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface riso.distributions.ConditionalDistribution
format_string, get_density, ndimensions_child, ndimensions_parent, p, random
 

Field Detail

components

public ConditionalDistribution[] components
This array contains a reference to each mixture component. Each component is a conditional distribution.

Constructor Detail

ConditionalMixture

public ConditionalMixture()
Method Detail

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.