Class DiscreteChanceNode
The discrete chance node class. Base class for all discrete chance nodes.
Note: Return and argument types for methods in this class vary depending on the particular API DLL (x86/x64 platform, single/double precision) being used. Please read the section Using the Hugin C#/.NET Core/.NET 5/.NET 6 API.
Inheritance
Implements
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.7-netstandard2.0-x64.dll
Syntax
public abstract class DiscreteChanceNode : DiscreteNode, ICloneable
Methods
ComputeSensitivityData(ulong)
Computes the constants of the sensitivity functions for the specified output probability and all CPT parameters in the network.
Declaration
public void ComputeSensitivityData(ulong state)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | state | The index of a state of this node - the probability of this state is the desired output probability. |
Remarks
Generic declaration:
public void ComputeSensitivityData (size_t state)
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |
GetCategory()
Returns the Category of this Node
Declaration
public override Node.Category GetCategory()
Returns
| Type | Description |
|---|---|
| Node.Category |
Overrides
GetExperienceTable()
Returns the experience table of this DiscreteChanceNode.
Declaration
public Table GetExperienceTable()
Returns
| Type | Description |
|---|---|
| Table |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |
GetFadingTable()
Returns the fading table of this DiscreteChanceNode.
Declaration
public Table GetFadingTable()
Returns
| Type | Description |
|---|---|
| Table |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |
HasExperienceTable()
Tests if this DiscreteChanceNode has an experience table.
Declaration
public bool HasExperienceTable()
Returns
| Type | Description |
|---|---|
| bool | Returns |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |
HasFadingTable()
Tests if this DiscreteChanceNode has a fading table.
Declaration
public bool HasFadingTable()
Returns
| Type | Description |
|---|---|
| bool | Returns |
Exceptions
| Type | Condition |
|---|---|
| ExceptionHugin |