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

Quick Search    Search Deep

riso.distributions
Class TrivialPiMessageHelper  view TrivialPiMessageHelper download TrivialPiMessageHelper.java

java.lang.Object
  extended byriso.distributions.TrivialPiMessageHelper
All Implemented Interfaces:
PiMessageHelper, java.io.Serializable

public class TrivialPiMessageHelper
extends java.lang.Object
implements PiMessageHelper


Constructor Summary
TrivialPiMessageHelper()
           
 
Method Summary
 Distribution compute_pi_message(Distribution pi, Distribution[] lambda_messages)
          In the case that there are no lambda messages to take into account, i.e.
static riso.general.SeqTriple[] description()
          Returns a description of the sequences of distributions accepted by this helper -- namely exactly one AbstractDistribution followed by any number of Noninformative.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialPiMessageHelper

public TrivialPiMessageHelper()
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 followed by any number of Noninformative.


compute_pi_message

public Distribution compute_pi_message(Distribution pi,
                                       Distribution[] lambda_messages)
                                throws java.lang.Exception
In the case that there are no lambda messages to take into account, i.e. lambda messages coming from children other than the one to which we are sending the pi message, the pi message is simply pi.

Specified by:
compute_pi_message in interface PiMessageHelper