Simulate Sub Procedure

Startpage
Overview
Index
HAPI
   |
   HAPI.Domain
      |
      Simulate()

Syntax

Sub Procedure Simulate()

Description

Given evidence, we may be interested in generating (sampling) configurations (i.e., vectors of values over the set of variables in the network) with respect to the conditional distribution for the evidence. If the Domain is compiled, a configuration is sampled with respect to the current distribution represented by the JunctionTree(s). This distribution must be in sum-equilibrium with evidence incorporated in normal mode. If domain is not compiled, sample a configuration with respect to the distribution determined by the tables associated with the nodes of domain. All uninstantiated chance and decision nodes must have valid tables, and the set of nodes with evidence must form an ancestral set of instantiated nodes (i.e., no likelihood evidence, and if a chance node is instantiated, so are all of its parents). Tables that are not up-to-date with respect to their models are not regenerated. When you have called Simulate, you can read the sample using the Selection property on the Node objects.

HUGIN Expert A/S, 2008 - comments to activex@hugin.com