(C++)  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
ExponentialFunction.hh
1 #ifndef GRAIL_EXPONENTIAL_FUNCTION_H
2 #define GRAIL_EXPONENTIAL_FUNCTION_H
3 
4 #include "Curve.hh"
5 
6 namespace grail
7 {
8  namespace curves
9  {
10  class ExponentialFunction final : public Curve
11  {
12  public:
13  explicit ExponentialFunction(float initBase);
14 
15  virtual float Sample(float argument) const override;
16 
17  float GetBase() const;
18 
19  CurveTypeId GetTypeId() const override;
20 
21  private:
22  float base = 0.0f;
23  };
24  }
25 }
26 
27 #endif // GRAIL_EXPONENTIAL_FUNCTION_H
The Curve class - Defines objects transforming one value into the other.
Definition: Curve.hh:17
Definition: ExponentialFunction.hh:11
virtual float Sample(float argument) const override
Sample - User-defined method which processes provided value (currently vector of values - multidemens...
Definition: ExponentialFunction.cpp:15