• Manual
  • HAPI Namespace
Show / Hide Table of Contents
  • HAPI
    • AbsExpression
    • AddExpression
    • AggregateExpression
    • AndExpression
    • Attribute
    • BetaDistribution
    • BinomialDistribution
    • BooleanDCNode
    • BooleanDDNode
    • BooleanDFNode
    • BooleanExpression
    • CeilExpression
    • Class
    • ClassCollection
    • ClassList
    • ClassParseListener
    • Clique
    • CliqueList
    • CompositeExpression
    • ConstantExpression
    • ContinuousChanceNode
    • CosExpression
    • CoshExpression
    • DataSet
    • DefaultClassParseListener
    • DiscreteChanceNode
    • DiscreteDecisionNode
    • DiscreteFunctionNode
    • DiscreteNode
    • DistributionDistribution
    • DivideExpression
    • Domain
    • Domain.Equilibrium
    • Domain.EvidenceMode
    • Domain.TriangulationMethod
    • EqualsExpression
    • ExceptionArgumentNotAlive
    • ExceptionBadKBFormat
    • ExceptionBadKBPassword
    • ExceptionBadKBVersion
    • ExceptionCaseStateTooLarge
    • ExceptionCGEvidenceIncorporated
    • ExceptionCGLIMIDsNotSupported
    • ExceptionChainGraph
    • ExceptionCompressed
    • ExceptionComputationFailed
    • ExceptionCyclicFunctionalDependency
    • ExceptionCyclicInstanceHierarchy
    • ExceptionCyclicNetwork
    • ExceptionDemo
    • ExceptionDivisionByZero
    • ExceptionEnumeration
    • ExceptionError
    • ExceptionExpiredLicense
    • ExceptionFastRetraction
    • ExceptionFunctionalDependency
    • ExceptionHugin
    • ExceptionIllegalBinding
    • ExceptionInappropriateArguments
    • ExceptionInconsistencyOrUnderflow
    • ExceptionInsufficientStateRange
    • ExceptionInvalidEvidence
    • ExceptionInvalidExpression
    • ExceptionInvalidLicense
    • ExceptionInvalidName
    • ExceptionInvalidProbabilityPotential
    • ExceptionInvalidStateValues
    • ExceptionIO
    • ExceptionLocale
    • ExceptionLowDensity
    • ExceptionMemory
    • ExceptionNoEquilibrium
    • ExceptionNormalization
    • ExceptionNotCompiled
    • ExceptionNoValue
    • ExceptionObjectNotAlive
    • ExceptionOverflow
    • ExceptionParse
    • ExceptionRounding
    • ExceptionSizeTooLarge
    • ExceptionSyntax
    • ExceptionTableTooLarge
    • ExceptionTwice
    • ExceptionUsage
    • ExceptionZeroVariance
    • ExpExpression
    • ExponentialDistribution
    • Expression
    • Expression.Operator
    • ExpressionList
    • FloorExpression
    • FunctionNode
    • GammaDistribution
    • GeometricDistribution
    • GreaterThanExpression
    • GreaterThanOrEqualsExpression
    • IfExpression
    • InstanceNode
    • IntervalDCNode
    • IntervalDDNode
    • IntervalDFNode
    • JunctionTree
    • JunctionTreeList
    • LabelExpression
    • LabelledDCNode
    • LabelledDDNode
    • LabelledDFNode
    • LessThanExpression
    • LessThanOrEqualsExpression
    • Log10Expression
    • Log2Expression
    • LogExpression
    • LogNormalDistribution
    • MaxExpression
    • MinExpression
    • Model
    • ModExpression
    • MultiplyExpression
    • NegateExpression
    • NegativeBinomialDistribution
    • NetworkModel
    • NetworkModel.Constraint
    • Node
    • Node.Category
    • Node.Kind
    • NodeExpression
    • NodeList
    • NoisyOrDistribution
    • NormalDistribution
    • NotEqualsExpression
    • NotExpression
    • NumberedDCNode
    • NumberedDDNode
    • NumberedDFNode
    • NumberExpression
    • NumericDiscreteNode
    • OrExpression
    • ParseListener
    • PERTDistribution
    • PoissonDistribution
    • PowerExpression
    • ProbabilityExpression
    • SinExpression
    • SinhExpression
    • SqrtExpression
    • StateIndexExpression
    • SubtractExpression
    • Table
    • TanExpression
    • TanhExpression
    • TriangularDistribution
    • TruncateExpression
    • UniformDistribution
    • UtilityNode
    • VarianceExpression
    • WeibullDistribution

Class IntervalDFNode

Interval discrete function node. Each state of an IntervalDFNode represents an interval.

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
object
Node
DiscreteNode
DiscreteFunctionNode
IntervalDFNode
Implements
ICloneable
NumericDiscreteNode
Inherited Members
DiscreteFunctionNode.GetCategory()
DiscreteNode.GetKind()
DiscreteNode.EnterFinding(ulong, float)
DiscreteNode.GetEnteredFinding(ulong)
DiscreteNode.GetNumberOfStates()
DiscreteNode.GetPropagatedFinding(ulong)
DiscreteNode.GetSampledState()
DiscreteNode.GetStateIndex(string)
DiscreteNode.GetStateLabel(ulong)
DiscreteNode.RetractFindings()
DiscreteNode.SelectState(ulong)
DiscreteNode.SetNumberOfStates(ulong)
DiscreteNode.SetStateLabel(ulong, string)
DiscreteNode.GetSensitivityConstants(ulong)
DiscreteNode.GetSensitivityConstants(ulong, ulong)
DiscreteNode.GetBelief(ulong)
DiscreteNode.GetExpectedUtility(ulong)
DiscreteNode.GetEntropy()
DiscreteNode.GetMutualInformation(DiscreteNode)
DiscreteNode.GenerateTable()
DiscreteNode.ComputeExplanationData(ulong, DiscreteNode, ulong, ulong)
DiscreteNode.ComputeExplanationData(ulong, ulong)
DiscreteNode.GetPredictedBelief(ulong, ulong)
DiscreteNode.SetCaseState(ulong, ulong)
DiscreteNode.UnsetCase(ulong)
DiscreteNode.CaseIsSet(ulong)
DiscreteNode.GetCaseState(ulong)
Node.IsAlive()
Node.Delete()
Node.SetName(string)
Node.GetName()
Node.AddParent(Node)
Node.AddToInputs()
Node.AddToOutputs()
Node.Clone()
Node.EvidenceIsEntered()
Node.EvidenceIsPropagated()
Node.EvidenceToPropagate()
Node.GetAttribute(string)
Node.GetAttributes()
Node.GetChildren()
Node.GetEdgeConstraint(Node)
Node.GetHome()
Node.GetHomeClass()
Node.GetHomeDomain()
Node.GetInstance()
Node.GetJunctionTree()
Node.GetLabel()
Node.GetMaster()
Node.GetParents()
Node.GetPosition()
Node.SetPosition(Point)
Node.GetUserData()
Node.SetUserData(object)
Node.GetSource()
Node.LikelihoodIsEntered()
Node.LikelihoodIsPropagated()
Node.RemoveFromInputs()
Node.RemoveFromOutputs()
Node.RemoveParent(Node)
Node.ReverseEdge(Node)
Node.SetAttribute(string, string)
Node.SetAttributes(List<Attribute>)
Node.SetEdgeConstraint(Node, NetworkModel.Constraint)
Node.SetLabel(string)
Node.SwitchParent(Node, Node)
Node.GetModel()
Node.GetTable()
Node.CreateTemporalClone()
Node.GetTemporalClone()
Node.GetTemporalMaster()
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: HAPI
Assembly: hugincs-9.4-netstandard2.0-x64.dll
Syntax
public class IntervalDFNode : DiscreteFunctionNode, ICloneable, NumericDiscreteNode

Constructors

IntervalDFNode(DiscreteFunctionNode)

Constructs a new IntervalDFNode object corresponding to the given DiscreteFunctionNode object node.

Declaration
public IntervalDFNode(DiscreteFunctionNode node)
Parameters
Type Name Description
DiscreteFunctionNode node

The DiscreteFunctionNode to be converted.

Remarks

The new object is identical to node except that it will be an "interval" function node. As a side-effect, node dies (that is, becomes "not-alive"). And if node is an output node, then all output clones associated with the node also die.

Exceptions
Type Condition
ExceptionHugin

IntervalDFNode(NetworkModel)

Constructs a new IntervalDFNode.

Declaration
public IntervalDFNode(NetworkModel belongsTo)
Parameters
Type Name Description
NetworkModel belongsTo
Exceptions
Type Condition
ExceptionHugin

Methods

GetStateIndex(double)

Returns the index of the state (interval) matching the specified value.

Declaration
public long GetStateIndex(double value)
Parameters
Type Name Description
double value

An interval containing this value will be searched for.

Returns
Type Description
long

The index of the state (interval) containing the specified value.

Remarks

If there is no interval containing the specified value, -1 is returned.

Generic declaration: public h_index_t GetStateIndex (double value)

Exceptions
Type Condition
ExceptionHugin

GetStateValue(ulong)

Returns the low value of the interval associated with state s.

Declaration
public double GetStateValue(ulong s)
Parameters
Type Name Description
ulong s

Index of the state.

Returns
Type Description
double
Remarks

To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this node.

Generic declaration: public double GetStateValue (size_t s)

Exceptions
Type Condition
ExceptionHugin

SetStateValue(ulong, double)

Sets the low value of the interval associated with state s to v.

Declaration
public void SetStateValue(ulong s, double v)
Parameters
Type Name Description
ulong s
double v
Remarks

To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this IntervalDCNode.

Generic declaration: public void SetStateValue (size_t s, double v)

Exceptions
Type Condition
ExceptionHugin

Implements

ICloneable
NumericDiscreteNode
In This Article
Back to top Copyright (C) 2019-2023 Hugin Expert A/S