blog
Class AbstractCondProbDistrib

java.lang.Object
  extended by blog.AbstractCondProbDistrib
All Implemented Interfaces:
CondProbDistrib
Direct Known Subclasses:
Bernoulli, Beta, BinaryBernoulliDistrib, Binomial, BoundedGeometric, Categorical, CharDistrib, ChooseFromArgs, DetCondProbDistrib, Exponential, Gamma, Geometric, LinearGaussian, MixtureDistrib, MultivarGaussian, NatNumDistribWithTail, NegativeBinomial, Poisson, RoundedLogNormal, StringEditModel, TabularCPD, UniformChoice, UniformInt, UniformReal, UniformVector, UnivarGaussian

public abstract class AbstractCondProbDistrib
extends java.lang.Object
implements CondProbDistrib

Abstract implementation of the CondProbDistrib interface. It implements the getLogProb method.


Constructor Summary
AbstractCondProbDistrib()
           
 
Method Summary
 double getLogProb(java.util.List args, java.lang.Object childValue)
          Returns the natural log of the value returned by getProb.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface blog.CondProbDistrib
getProb, sampleVal
 

Constructor Detail

AbstractCondProbDistrib

public AbstractCondProbDistrib()
Method Detail

getLogProb

public double getLogProb(java.util.List args,
                         java.lang.Object childValue)
Description copied from interface: CondProbDistrib
Returns the natural log of the value returned by getProb.

Specified by:
getLogProb in interface CondProbDistrib

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object