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