Returns the distribution currently associated with the Node. The distribution cannot be modified when it is assigned to a node. It is also automatically set to null, when certain structural changes occur (see remarks).

Namespace:  BayesServer
Assembly:  BayesServer (in BayesServer.dll)
Version: 2.2.0.0 (2.2.0.0)

Syntax

C#
public IDistribution Distribution { get; set; }
Visual Basic (Declaration)
Public Property Distribution As IDistribution
Visual C++
public:
property IDistribution^ Distribution {
	IDistribution^ get ();
	void set (IDistribution^ value);
}

Remarks

If a structural change occurs to the network that invalidates the current distribution, it is automatically set to null. This occurs in the following situations:
  • States are added or removed from the node.
  • States are added or removed from one of the node's parents.
  • The LinksIn collection changes. I.e. adding or removing a parent node. Note that if a node is removed from a network, all of its links are automatically removed also.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionRaised when the distribution is invalid.

See Also