Default


Description

Get/set the default probability value for a node's state.

Syntax

To get:

aDist.Default(indexState)

 

To set:

aDist.Default(indexState) = probability

 

Parameter Description
aDist a node's Dist object.
indexState An integer, or a string, or a State object specifying a state in the node's States collection.
probability A double-precision floating-point number.

Return Value

Getting the value returns a  double-precision floating-point number.

Remarks

The Default property of a distribution (Dist object) can be used only when the distribution is sparse (aDist.Type = deCondSparse).

Example

See: Distributions: an Overview

Applies To

Dist