Package tools.mdsd.probdist.api.entity
Class ConditionalProbabilityDistribution
java.lang.Object
tools.mdsd.probdist.api.entity.ProbabilityDistributionFunction<CategoricalValue>
tools.mdsd.probdist.api.entity.ConditionalProbabilityDistribution
- All Implemented Interfaces:
Conditionable<CategoricalValue>
,ConditionableProbabilityDistribution<CategoricalValue>
,ProbabilityMeasure<CategoricalValue>
,Sampler<CategoricalValue>
public class ConditionalProbabilityDistribution
extends ProbabilityDistributionFunction<CategoricalValue>
implements ConditionableProbabilityDistribution<CategoricalValue>
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.mdsd.probdist.api.entity.Conditionable
Conditionable.Conditional<I extends Value<?>>
-
Field Summary
Fields inherited from class tools.mdsd.probdist.api.entity.ProbabilityDistributionFunction
distSkeleton
-
Constructor Summary
ConstructorDescriptionConditionalProbabilityDistribution
(ProbabilityDistribution distribution, TabularCPD tabularCPD, IProbabilityDistributionFactory<CategoricalValue> probabilityDistributionFactory) -
Method Summary
Modifier and TypeMethodDescriptiongiven
(List<Conditionable.Conditional<CategoricalValue>> conditionals) probability
(CategoricalValue value) sample()
Methods inherited from class tools.mdsd.probdist.api.entity.ProbabilityDistributionFunction
getDistributionSkeleton
-
Constructor Details
-
ConditionalProbabilityDistribution
public ConditionalProbabilityDistribution(ProbabilityDistribution distribution, TabularCPD tabularCPD, IProbabilityDistributionFactory<CategoricalValue> probabilityDistributionFactory)
-
-
Method Details
-
probability
- Specified by:
probability
in interfaceProbabilityMeasure<CategoricalValue>
-
sample
- Specified by:
sample
in interfaceSampler<CategoricalValue>
-
given
public ConditionalProbabilityDistribution given(List<Conditionable.Conditional<CategoricalValue>> conditionals) - Specified by:
given
in interfaceConditionable<CategoricalValue>
-