Add (Evidence)


Description

Add a node-to-state assignment to the Evidence collection.

Syntax

someEvidence.Add(indexNode, indexState)

 

Parameter Description
someEvidence an Evidence object.
indexNode An integer, or a string, or a Node object specifying the Node object to add to the Evidence collection. The zero-based integer is a index into the ModelNodes collection. Likewise, the Node object must be in the ModelNodes collection and the string must be the name of a Node object in the ModelNodes collection.
indexState An integer, or a string, or a State object specifying the State object to which the Node object is to be assigned. The State object must be in the Node object's States collection.

Return Value

The State object specified by indexState.

Example

Inference: an Overview

Applies To

Evidence