DecisionNode
utils.DecisionNode
case class DecisionNode[Ctx, Res](predicate: Ctx => Boolean, trueBranch: DecisionTree[Ctx, Res], falseBranch: DecisionTree[Ctx, Res]) extends DecisionTree[Ctx, Res]
Represents a binary decision node in the decision tree.
A DecisionNode evaluates a predicate against the context and branches to either a trueBranch or a falseBranch accordingly.
Type parameters
- Ctx
-
The context type.
- Res
-
The result type.
Value parameters
- falseBranch
-
The DecisionTree to evaluate if the predicate returns false.
- predicate
-
A function that takes the context and returns a boolean, determining the branch to follow.
- trueBranch
-
The DecisionTree to evaluate if the predicate returns true.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article