Class FunctionNode
A FunctionNode represents a real-valued function. This function is specified using expressions (which may refer to the values of the parents) in a Model.
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.
Implements
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.4-netstandard2.0-x64.dll
Syntax
public class FunctionNode : Node, ICloneable
Constructors
FunctionNode(NetworkModel)
Constructs a new FunctionNode in a NetworkModel (i.e., a Class or a Domain).
Declaration
public FunctionNode(NetworkModel belongsTo)
Parameters
Type | Name | Description |
---|---|---|
NetworkModel | belongsTo | The NetworkModel in which the new FunctionNode should be created. |
Exceptions
Type | Condition |
---|---|
ExceptionHugin |
Methods
GetCategory()
Returns the Category of this Node
Declaration
public override Node.Category GetCategory()
Returns
Type | Description |
---|---|
Node.Category |
Overrides
GetKind()
Returns the Kind of this Node.
Declaration
public override Node.Kind GetKind()
Returns
Type | Description |
---|---|
Node.Kind |
Overrides
GetPredictedValue(ulong)
Returns the predicted value of this FunctionNode at the specified time point.
Declaration
public double GetPredictedValue(ulong time)
Parameters
Type | Name | Description |
---|---|---|
ulong | time | Time slice index (a nonnegative integer less than the number of predicted time slices). |
Returns
Type | Description |
---|---|
double |
Remarks
This method accesses the predictions computed by a previous call to ComputeDBNPredictions(ulong).
Generic declaration:
public double GetPredictedValue (size_t time)
Exceptions
Type | Condition |
---|---|
ExceptionHugin |
GetSampledValue()
Returns the sampled value of this FunctionNode.
Declaration
public double GetSampledValue()
Returns
Type | Description |
---|---|
double |
Remarks
The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent call to Simulate().
Exceptions
Type | Condition |
---|---|
ExceptionHugin |
GetValue()
Returns the value of this FunctionNode.
Declaration
public double GetValue()
Returns
Type | Description |
---|---|
double |
Remarks
The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent inference operation.
Exceptions
Type | Condition |
---|---|
ExceptionHugin |