The SigmoidFunction class - Sigmoid function.
More...
#include <SigmoidFunction.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::SigmoidFunction< ContextType >
The SigmoidFunction class - Sigmoid function.
- Template Parameters
-
ContextType | - Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ SigmoidFunction()
template<typename ContextType >
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. |
◆ GetDisplacement()
template<typename ContextType >
GetDisplacement.
- Returns
- Displacement of the curve on Y-axis.
◆ GetRange()
template<typename ContextType >
GetRange.
- Returns
- Number determining difference between highest possible value and lowest possible value.
◆ GetSlope()
template<typename ContextType >
GetSlope.
- Returns
- The higher the slope, the more it will resemble step function. The lower the slope, the more it will resemble linear function.
◆ GetThreshold()
template<typename ContextType >
GetThreshold.
- Returns
- Location of the middle of sigmoid slope on X-axis.
◆ 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: