Linear Function.
More...
|
sealed override EvaluatorType | EvaluatorType => EvaluatorType.CURVE_LINEAR |
|
|
static void | CacheConsiderationEvaluations (Evaluator< ContextType > evaluator, ContextType context) |
|
sealed override float | Evaluate (ContextType context, in UtilityEvaluatorSnapshot snapshot) |
| Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator. More...
|
|
sealed override void | DebugDump (IReadOnlyDictionary< object, int > nodeMapping, ref EvaluationDebugData debugData) |
| Called from EvaluateContext, which generates additional debug data for each evaluator. Should be overriden in each derived evaluator to better reflect debug tree topology. More...
|
|
abstract EvaluatorType | EvaluatorType [get] |
|
Linear Function.
- Template Parameters
-
ContextType | Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ LinearFunction() [1/2]
Constructor.
- Parameters
-
childEvaluator | Evaluator which output will be transformed by this curve. |
slope | "a" parameter of linear function. |
intercept | "b" parameter of linear function. |
◆ LinearFunction() [2/2]
Constructor.
- Parameters
-
childEvaluator | Evaluator which output will be transformed by this curve. |
firstPoint | Beginning of the segment describing linear function. |
secondPoint | End of the segment describing linear function. |
- Exceptions
-
ArgumentException | Thrown when firstPoint and secondPoint describe impossible segment. |
◆ Sample()
The documentation for this class was generated from the following file:
- GrailEvaluators/source/Curves/LinearFunction.cs