1 #ifndef GRAIL_POWER_FUNCTION_H
2 #define GRAIL_POWER_FUNCTION_H
14 PowerFunction(
float initSlope,
float initIntercept,
float initExponent);
15 PowerFunction(std::pair<float, float> firstPoint, std::pair<float, float> secondPoint,
float initExponent);
17 virtual float Sample(
float argument)
const override;
19 float GetSlope()
const;
20 float GetIntercept()
const;
21 float GetExponent()
const;
23 CurveTypeId GetTypeId()
const override;
27 float intercept = 0.0f;
28 float exponent = 0.0f;
The Curve class - Defines objects transforming one value into the other.
Definition: Curve.hh:17
Definition: PowerFunction.hh:12
virtual float Sample(float argument) const override
Sample - User-defined method which processes provided value (currently vector of values - multidemens...
Definition: PowerFunction.cpp:33