The UnitStepFunction class - Unit Step Function.
More...
#include <UnitStepFunction.hh>
|
virtual void | DebugDump (const std::map< const void *, std::size_t > &nodeMapping, EvaluationDebugData &debugData) const override final |
| DebugDump - 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...
|
|
template<typename ContextType>
class grail::curves::UnitStepFunction< ContextType >
The UnitStepFunction class - Unit Step Function.
- Template Parameters
-
ContextType | - Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ UnitStepFunction()
template<typename ContextType >
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. |
◆ GetAfterThresholdValue()
template<typename ContextType >
GetAfterThresholdValue.
- Returns
- Value assigned to arguments placed to the right of the threshold.
◆ GetBeforeThresholdValue()
template<typename ContextType >
GetBeforeThresholdValue.
- Returns
- Value assigned to arguments placed to the left of the threshold.
◆ GetThreshold()
template<typename ContextType >
GetThreshold.
- Returns
- Parameter describing point of separation between two discrete values.
◆ Sample()
template<typename ContextType >
|
inlinefinaloverridevirtual |
Sample - Transforms argument into output value depending on the type of Curve.
- Parameters
-
argument | - Value of a curve argument belonging to its domain. |
- Returns
- Transformed argument.
Implements grail::curves::Curve< ContextType >.
The documentation for this class was generated from the following file: