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

Quick Search    Search Deep

riso.distributions
Class TrivialPiHelper  view TrivialPiHelper download TrivialPiHelper.java

java.lang.Object
  extended byriso.distributions.TrivialPiHelper
All Implemented Interfaces:
PiHelper, java.io.Serializable

public class TrivialPiHelper
extends java.lang.Object
implements PiHelper


Constructor Summary
TrivialPiHelper()
           
 
Method Summary
 Distribution compute_pi(ConditionalDistribution px, Distribution[] pi_messages)
          This helper is called only when there are no parents of a variable; in that case, the marginal distribution is just the distribution conditional on the parents, and pi is the marginal distribution.
static riso.general.SeqTriple[] description()
          Returns a description of the sequences of distributions accepted by this helper -- namely exactly one AbstractDistribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialPiHelper

public TrivialPiHelper()
Method Detail

description

public static riso.general.SeqTriple[] description()
Returns a description of the sequences of distributions accepted by this helper -- namely exactly one AbstractDistribution.


compute_pi

public Distribution compute_pi(ConditionalDistribution px,
                               Distribution[] pi_messages)
                        throws java.lang.Exception
This helper is called only when there are no parents of a variable; in that case, the marginal distribution is just the distribution conditional on the parents, and pi is the marginal distribution. So this method just returns the variable's conditional distribution.

Specified by:
compute_pi in interface PiHelper