edu.cs.ai.kreator.logic.probabilities
Class CrIdentity

java.lang.Object
  extended by edu.cs.ai.kreator.logic.probabilities.CombiningRule
      extended by edu.cs.ai.kreator.logic.probabilities.CrIdentity

public class CrIdentity
extends CombiningRule

This class models the identity combining rule. Usually this combining rule only makes sense, if there is not more than one bayesian clause for the bayesian atom under consideration, as this rule does not actually combine any cpds, but just maps a singleton set of cpds to its single element.

Author:
Matthias Thimm

Field Summary
 
Fields inherited from class edu.cs.ai.kreator.logic.probabilities.CombiningRule
AVERAGE, IDENTITY, NOISYAND, NOISYOR
 
Method Summary
 java.lang.Double combine(java.util.LinkedList<java.lang.Double> values)
          Combines the given values to one value.
 Cpd combine(java.util.List<Cpd> cpds)
          This method combines a set of CPDs to a single CPD.
static CrIdentity getInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cs.ai.kreator.logic.probabilities.CombiningRule
combine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static CrIdentity getInstance()

combine

public Cpd combine(java.util.List<Cpd> cpds)
Description copied from class: CombiningRule
This method combines a set of CPDs to a single CPD.

Specified by:
combine in class CombiningRule
Parameters:
cpds - a set of cpds
Returns:
a cpd

combine

public java.lang.Double combine(java.util.LinkedList<java.lang.Double> values)
Description copied from class: CombiningRule
Combines the given values to one value.

Specified by:
combine in class CombiningRule
Parameters:
values - a list of Doubles.
Returns:
a Double

toString

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