blog
Class DetCondProbDistrib

java.lang.Object
  extended by blog.AbstractCondProbDistrib
      extended by blog.DetCondProbDistrib
All Implemented Interfaces:
CondProbDistrib
Direct Known Subclasses:
EqualsCPD, Iota

public abstract class DetCondProbDistrib
extends AbstractCondProbDistrib

Abstract class for deterministic conditional probability distributions. These are distributions such that for each tuple of CPD arguments, there is a child value that has probability one.


Constructor Summary
DetCondProbDistrib()
           
 
Method Summary
abstract  java.lang.Object getChildValue(java.util.List args)
          Returns the child value that has probability one for the given tuple of CPD arguments.
 double getProb(java.util.List args, java.lang.Object childValue)
          For a discrete distribution, returns the conditional probability of childValue given the argument values args.
 java.lang.Object sampleVal(java.util.List args, Type childType)
          Samples a value according to this CPD given the args .
 
Methods inherited from class blog.AbstractCondProbDistrib
getLogProb, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetCondProbDistrib

public DetCondProbDistrib()
Method Detail

getChildValue

public abstract java.lang.Object getChildValue(java.util.List args)
Returns the child value that has probability one for the given tuple of CPD arguments.


getProb

public double getProb(java.util.List args,
                      java.lang.Object childValue)
Description copied from interface: CondProbDistrib
For a discrete distribution, returns the conditional probability of childValue given the argument values args. For a continuous distribution, returns the conditional probability density at childValue.


sampleVal

public java.lang.Object sampleVal(java.util.List args,
                                  Type childType)
Description copied from interface: CondProbDistrib
Samples a value according to this CPD given the args . The object returned should be of the specified type.