Network

<< Click to Display Table of Contents >>

Navigation:  Using SMILE > Networks, nodes and arcs >

Network

To create an instance of the DSL_network, simply use the default constructor.

DSL_network myNetwork;

You can create DSL_network as a local variable on the stack, an object on the heap, or a member of another class, depending on your specific needs. Programs will typically call the ReadFile or ReadString methods to initialize the content of the network after creating it. The UpdateBeliefs method invokes the inference algorithm on the network and sets the node values. The CalcProbEvidence method computes the probability of evidence currently set in the network.

The objects of DSL_network class can be copied with the copy constructor and assigned with operator=.