Prob


Description

Given any assignment for the parents and the node, returns the distribution's probability.

Syntax

aDist.Prob(anAssignment, indexState)

 

Parameter Description
aDist a Dist object.
anAssignment Optional. An Assignment collection that sets every parent of the node to a state. By default this is the empty Assignment collection which is convenient for parentless nodes.
indexState Optional. An integer, or a string, or a State object specifying the state of the node. The State object must be in the Node object's States collection. If the state of the current node is not given here, it must be given in anAssignment.

Return Value

The probability, given the assignment of parents, that the node will be in the state specified by indexState.

Example

See: Distributions: an Overview

Applies To

Dist