Probability
The Probability class contains a dictionary of classes represented by a string and their corresponding probabilities. It is derived from the VisionElement base class.
Constructors
Empty constructor.
new Probability(): Probability;
Constructor with the initial probabilities.
new Probability(classes: Record<string, number>): Probability;
Methods
set()
Set the dictionary of probabilities.
set(classes: Record<string, number>): void;
isDouble()
Returns true if the number is a floating point value.
isDouble(): boolean;
Value
value
The numeric value.
value: number;