Package tools.mdsd.probdist.api.entity
Class TabularCPDEvaluator
java.lang.Object
tools.mdsd.probdist.api.entity.TabularCPDEvaluator
- All Implemented Interfaces:
CPDEvaluator
,ISeedable
-
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) void
init
(Optional<ISeedProvider> seedProvider)
-
Constructor Details
-
TabularCPDEvaluator
public TabularCPDEvaluator(TabularCPD tabularCPD, ProbabilityDistribution distribution, IProbabilityDistributionFactory<CategoricalValue> probabilityDistributionFactory)
-
-
Method Details
-
init
-
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
-