Node-class: Node Class Definition

Node-classR Documentation

Node Class Definition

Description

An S4 class to represent a node in a tree structure.

Details

A structured representation of a node, which encompasses various attributes such as name, depth, and relationships with other nodes in the tree structure. The class Node is primarily used in the creation, manipulation, and display of nodes within tree structures.

Value

An object of class Node.

Slots

Id

numeric - Unique sequential identifier for the node.

Name

character - Name of the node.

IsLeaf

logical - Flag indicating if the node is a leaf.

IsLeafAndAggregated

logical - Flag indicating if the node is both a leaf and an aggregated node.

Children

character - List of the node's children names.

Sisters

character - List of the node's sisters names.

Mother

character - Name of the node's mother.

Aggregation

matrix - Aggregation table if the node is aggregated.

Probability

numeric - Estimated weight for aggregation.

Depth

numeric - Depth of the node in the tree.

Twin

numeric - ID of the other leaves for nodes with multiple leaves.

ConditionalProbabilityList

list - List storing conditional probabilities.

RangeScale

numeric - Range scale for the node.

ScaleLabel

character - Labels corresponding to different scales.

NodePath

character - Path from the root to the leaf for the node.

See Also

  • print.Node: For printing a Node object.


dexisensitivity documentation built on Oct. 30, 2024, 1:08 a.m.