Package tools.mdsd.probdist.api.entity
Class TabularCPDEvaluator
java.lang.Object
tools.mdsd.probdist.api.entity.TabularCPDEvaluator
- All Implemented Interfaces:
CPDEvaluator
-
Constructor Summary
ConstructorDescriptionTabularCPDEvaluator
(TabularCPD tabularCPD, ProbabilityDistribution distribution, IProbabilityDistributionFactory<CategoricalValue> probabilityDistributionFactory) -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(CategoricalValue value, List<Conditionable.Conditional<CategoricalValue>> conditionals) getCPDGiven
(List<Conditionable.Conditional<CategoricalValue>> conditionals)
-
Constructor Details
-
TabularCPDEvaluator
public TabularCPDEvaluator(TabularCPD tabularCPD, ProbabilityDistribution distribution, IProbabilityDistributionFactory<CategoricalValue> probabilityDistributionFactory)
-
-
Method Details
-
evaluate
public Double evaluate(CategoricalValue value, List<Conditionable.Conditional<CategoricalValue>> conditionals) - Specified by:
evaluate
in interfaceCPDEvaluator
-
getCPDGiven
public ProbabilityDistributionFunction<CategoricalValue> getCPDGiven(List<Conditionable.Conditional<CategoricalValue>> conditionals) - Specified by:
getCPDGiven
in interfaceCPDEvaluator
-