edu.cs.ai.kreator.logic.probabilities
Class CrNoisyAnd
java.lang.Object
edu.cs.ai.kreator.logic.probabilities.CombiningRule
edu.cs.ai.kreator.logic.probabilities.CrNoisyAnd
public class CrNoisyAnd
- extends CombiningRule
This class models the noisy-and combining rule. It associates to a set {p1,...,pn} of probabilities
the value p1*...*pn.
- Author:
- Matthias Thimm
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 CrNoisyAnd |
getInstance()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getInstance
public static CrNoisyAnd getInstance()
combine
public Cpd combine(java.util.List<Cpd> cpds)
throws GeneralQueryException
- 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
- Throws:
GeneralQueryException
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