Unit Step Function.
More...
|
sealed override EvaluatorType | EvaluatorType => EvaluatorType.CURVE_UNIT_STEP |
|
|
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] |
|
Unit Step Function.
- Template Parameters
-
ContextType | Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ UnitStepFunction()
Constructor.
- Parameters
-
childEvaluator | Evaluator which output will be transformed by this curve. |
threshold | Parameter describing point of separation between two discrete values. |
beforeThresholdValue | Value assigned to arguments placed to the left of the threshold. |
afterThresholdValue | Value assigned to arguments placed to the right of the threshold. |
◆ Sample()
The documentation for this class was generated from the following file:
- GrailEvaluators/source/Curves/UnitStepFunction.cs