RoboidControl
Loading...
Searching...
No Matches
d:/PlatformIO/RoboidControl/Activation.h
Go to the documentation of this file.
1#ifndef RC_ACTIVATION_H
2#define RC_ACTIVATION_H
3
4#include <math.h>
5
6namespace Passer {
7namespace RoboidControl {
8
12public:
13 static float HeavisideStep(float inputValue, float bias = 0); // Range: {0,1}
14
15 static float Tanh(float inputValue); // Range: (-1, 1)
16
17 static float Sigmoid(float inputValue); // Range: (0, 1)
18
19 static float Linear(float inputValue, float bias = 0, float range = 0);
20
21 static float Quadratic(float inputValue, float bias = 0,
22 float range = 0); // minValue = bias
23
24 static float ParticleLife(float minValue, float maxValue, float attraction,
25 float inputValue); // minValue = bias
26};
27
28} // namespace RoboidControl
29} // namespace Passer
30using namespace Passer::RoboidControl;
31
32#endif
Activation function for control.
Definition Activation.h:11
static float Quadratic(float inputValue, float bias=0, float range=0)
Definition Activation.cpp:27
static float ParticleLife(float minValue, float maxValue, float attraction, float inputValue)
Definition Activation.cpp:38
static float Sigmoid(float inputValue)
Definition Activation.cpp:11
static float HeavisideStep(float inputValue, float bias=0)
Definition Activation.cpp:3
static float Tanh(float inputValue)
Definition Activation.cpp:7
static float Linear(float inputValue, float bias=0, float range=0)
Definition Activation.cpp:15
Definition Accelerometer.h:7
Definition AbsoluteEncoder.h:5