Learn R Programming

rdecision (version 1.1.2)

ChanceNode: A chance node in a decision tree

Description

An R6 class representing a chance node in a decision tree.

Arguments

Author

Andrew Sims andrew.sims@newcastle.ac.uk

Super class

rdecision::Node -> ChanceNode

Methods

Inherited methods


Method new()

Create a new ChanceNode object

Usage

ChanceNode$new(label = "")

Arguments

label

An optional label for the chance node.

Returns

A new ChanceNode object


Method clone()

The objects of this class are cloneable with this method.

Usage

ChanceNode$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

A chance node is associated with at least two branches to other nodes, each of which has a conditional probability (the probability of following that branch given that the node has been reached). Inherits from class Node.