java.lang.Object
riso.distributions.TrivialPiHelper
- All Implemented Interfaces:
- PiHelper, java.io.Serializable
- public class TrivialPiHelper
- extends java.lang.Object
- implements PiHelper
|
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 |
TrivialPiHelper
public TrivialPiHelper()
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