Crystal AI
1.0.0
|
The LinearEvaluator returns a normalized utility value based on a linear function. Powerfor an interactive plot. More...
Public Member Functions | |
override float | Evaluate (float x) |
Returns the value for the specified x. More... | |
LinearEvaluator () | |
Initializes a new instance of the T:Crystal.LinearEvaluator class. Powerfor an interactive plot. More... | |
LinearEvaluator (Pointf ptA, Pointf ptB) | |
Initializes a new instance of the T:Crystal.LinearEvaluator class. Powerfor an interactive plot. More... | |
Public Member Functions inherited from Crystal.EvaluatorBase | |
int | CompareTo (IEvaluator other) |
Compares the current object with another object of the same type. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Crystal.EvaluatorBase | |
EvaluatorBase () | |
Initializes a new instance of the T:Crystal.EvaluatorBase class. More... | |
EvaluatorBase (Pointf ptA, Pointf ptB) | |
Initializes a new instance of the T:Crystal.EvaluatorBase class. More... | |
Protected Attributes inherited from Crystal.EvaluatorBase | |
float | Xa |
The x-coordinate of point A. Note, this can have any value in the real interval (-inf, +inf). More... | |
float | Xb |
The x-coordinate of point B. Note, this can have any value in the real interval (-inf, +inf). More... | |
float | Ya |
The y-coordinate of point A. Note, this can have a value within the interval [0, 1]. More... | |
float | Yb |
The y-coordinate of point B. Note, this can have a value within the interval [0, 1]. More... | |
Properties inherited from Crystal.EvaluatorBase | |
Pointf | PtA [get] |
The first point of the evaluator. The x-coordinate of this point will always be strictly smaller than that of PtB. More... | |
Pointf | PtB [get] |
The second point of the evaluator. The x-coordinate of this point will always be strictly larger than that of PtA. More... | |
float | MinX [get] |
The lower bound of the x-coordinate interval. More... | |
float | MaxX [get] |
The upper bound of the x-coordinate interval. More... | |
float | MinY [get] |
The lower bound of the y-coordinate interval. More... | |
float | MaxY [get] |
The upper bound of the y-coordinate interval. More... | |
Interval< float > | XInterval [get] |
The x-coordinate interval represents the domain of definition of this evaluator. More... | |
Interval< float > | YInterval [get] |
The y-coordinate interval represents the range of this evaluator. Note that this must be a sub-interval (or the entire interval) [0,1]. More... | |
bool | IsInverted [get, set] |
When true, the output of the Evaluate method is transformed to 1.0f - (normal output). More... | |
Properties inherited from Crystal.IEvaluator | |
Pointf | PtA [get] |
The first point of the evaluator. The x-coordinate of this point will always be strictly smaller than that of PtB. More... | |
Pointf | PtB [get] |
The second point of the evaluator. The x-coordinate of this point will always be strictly larger than that of PtA. More... | |
float | MinX [get] |
The lower bound of the x-coordinate interval. More... | |
float | MaxX [get] |
The upper bound of the x-coordinate interval. More... | |
float | MinY [get] |
The lower bound of the y-coordinate interval. More... | |
float | MaxY [get] |
The upper bound of the y-coordinate interval. More... | |
Interval< float > | XInterval [get] |
The x-coordinate interval represents the domain of definition of this evaluator. More... | |
Interval< float > | YInterval [get] |
The y-coordinate interval represents the range of this evaluator. Note that this must be a sub-interval (or the entire interval) [0,1]. More... | |
bool | IsInverted [get, set] |
When true, the output of the Evaluate method is transformed to 1.0f - (normal output). More... | |
The LinearEvaluator returns a normalized utility value based on a linear function. Power
for an interactive plot.
|
inline |
Initializes a new instance of the T:Crystal.LinearEvaluator class. Powerfor an interactive plot.
Initializes a new instance of the T:Crystal.LinearEvaluator class. Powerfor an interactive plot.
ptA | Point a. |
ptB | Point b. |
|
inlinevirtual |
Returns the value for the specified x.
Reimplemented from Crystal.EvaluatorBase.