Evaluator aggregating multiple other Evaluators' scores into one output by taking the average.
More...
|
|
sealed override EvaluatorType | EvaluatorType => EvaluatorType.AGGREGATOR_AVERAGE |
| |
|
| 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...
|
| |
|
|
static void | CacheConsiderationEvaluations (Evaluator< ContextType > evaluator, ContextType context) |
| |
|
readonly List< Evaluator< ContextType > > | childEvaluators = new List<Evaluator<ContextType>>() |
| |
|
abstract EvaluatorType | EvaluatorType [get] |
| |
Evaluator aggregating multiple other Evaluators' scores into one output by taking the average.
- Template Parameters
-
| ContextType | Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ AverageAggregator()
Constructor.
- Parameters
-
| childEvaluators | All evaluators which scores should be aggregated during evaluation of this node. |
◆ Evaluate()
Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator.
- Parameters
-
| context | Input data for evaluation. |
| snapshot | Evaluator snapshot containing debug data describing whole evaluator tree. |
- Returns
- Numerical evaluation of provided context.
Implements Grail.Evaluators.Evaluator< ContextType >.
The documentation for this class was generated from the following file:
- GrailEvaluators/source/Aggregators/AverageAggregator.cs