Dist
Description
Retrieves a probability distribution for a Node object, if one exists. If the node has no probability distribution, will return Nothing.
Syntax
Testing: (this expression will be true of the node has a distribution)
(not aNode.Dist is Nothing)
Getting:
aNode.Dist
aNode.Dist(indexAssignment, indexState)
Setting:
Set aNode.Dist = aDist
Set aNode.Dist = Nothing
aNode.Dist(indexAssignment, indexState) = aParameterValue
Parameter
Description
aNode
a Node object.
indexAssignment
an integer or Assignment collection that specifies a "row" of the distribution. The integer is 0-based. An Assignment collection must set all parent nodes.
indexState
an integer, or a string, or a State object specifying a state in the node's States collection, that is a "column" of the distribution.
aDist
a Dist object from which to copy.
aParameterValue
a double-precision floating-point number
Return Value
When getting, "(indexAssignment, indexState)" is optional. If it is not given, the Dist object, if any, is returned. If it is given, aParameterValue is returned.
Remarks
Setting the Dist property to another Dist object, copies the type and parameters from the other Dist.
Setting the Dist property to Nothing, removes the distribution from the node.
It is fine for the Assignment collection to set nodes other than the parents; the other nodes are just ignored.
Examples
Properties
Count, Default, Description, Model, MSBN, Node, ParentNodes, Prob, Ref, Type, UsingDefault
Methods
None.
Collections
Events
SetValue, SetUsingDefault, SetDefault,
NodeSetName, NodeStateSetName, NodeSetDescriptionParentNodeSetName, ParentNodeStateSetName, ParentNodeSetDescription
Applies To