• 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
    • ExceptionCGEvidenceIncorporated
    • ExceptionCGLIMIDsNotSupported
    • ExceptionCaseStateTooLarge
    • ExceptionChainGraph
    • ExceptionCompressed
    • ExceptionComputationFailed
    • ExceptionCyclicFunctionalDependency
    • ExceptionCyclicInstanceHierarchy
    • ExceptionCyclicNetwork
    • ExceptionDemo
    • ExceptionDivisionByZero
    • ExceptionEnumeration
    • ExceptionError
    • ExceptionExpiredLicense
    • ExceptionFastRetraction
    • ExceptionFunctionalDependency
    • ExceptionHugin
    • ExceptionIO
    • ExceptionIllegalBinding
    • ExceptionInappropriateArguments
    • ExceptionInconsistencyOrUnderflow
    • ExceptionInsufficientStateRange
    • ExceptionInvalidEvidence
    • ExceptionInvalidExpression
    • ExceptionInvalidLicense
    • ExceptionInvalidName
    • ExceptionInvalidProbabilityPotential
    • ExceptionInvalidStateValues
    • ExceptionLocale
    • ExceptionLowDensity
    • ExceptionMemory
    • ExceptionNoEquilibrium
    • ExceptionNoValue
    • ExceptionNormalization
    • ExceptionNotCompiled
    • 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
    • ModExpression
    • Model
    • MultiplyExpression
    • NegateExpression
    • NegativeBinomialDistribution
    • NetworkModel
    • NetworkModel.Constraint
    • Node
    • Node.Category
    • Node.Kind
    • NodeExpression
    • NodeList
    • NoisyOrDistribution
    • NormalDistribution
    • NotEqualsExpression
    • NotExpression
    • NumberExpression
    • NumberedDCNode
    • NumberedDDNode
    • NumberedDFNode
    • NumericDiscreteNode
    • OrExpression
    • PERTDistribution
    • ParseListener
    • PoissonDistribution
    • PowerExpression
    • ProbabilityExpression
    • QuantileExpression
    • SinExpression
    • SinhExpression
    • SqrtExpression
    • StateIndexExpression
    • SubtractExpression
    • Table
    • TanExpression
    • TanhExpression
    • TriangularDistribution
    • TruncateExpression
    • UniformDistribution
    • UtilityNode
    • VarianceExpression
    • WeibullDistribution

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
object
Node
DiscreteNode
DiscreteChanceNode
BooleanDCNode
IntervalDCNode
LabelledDCNode
NumberedDCNode
Implements
ICloneable
Inherited Members
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.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

H_CATEGORY_CHANCE

Overrides
DiscreteNode.GetCategory()

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 true if this DiscreteChanceNode has an experience table; returns false otherwise.

Exceptions
Type Condition
ExceptionHugin

HasFadingTable()

Tests if this DiscreteChanceNode has a fading table.

Declaration
public bool HasFadingTable()
Returns
Type Description
bool

Returns true if this DiscreteChanceNode has a fading table; returns false otherwise.

Exceptions
Type Condition
ExceptionHugin

Implements

ICloneable
In this article
Back to top Copyright (C) 2019-2025 Hugin Expert A/S