Sigmoid function.
More...
|
sealed override EvaluatorType | EvaluatorType => EvaluatorType.CURVE_SIGMOID |
|
|
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] |
|
Sigmoid function.
- Template Parameters
-
ContextType | Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ SigmoidFunction()
Constructor.
- Parameters
-
childEvaluator | Evaluator which output will be transformed by this curve. |
range | Determines difference between highest possible value and lowest possible value. |
slope | The higher the slope, the more it will resemble step function. The lower the slope, the more it will resemble linear function. |
threshold | Location of the middle of sigmoid slope on X-axis. |
displacement | Displacement of the curve on Y-axis. |
◆ Sample()
The documentation for this class was generated from the following file:
- GrailEvaluators/source/Curves/SigmoidFunction.cs