diff options
| author | Jacob Palecki <[email protected]> | 2020-09-09 19:56:54 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-09 19:56:54 -0700 |
| commit | 9b4556c59f063e5c6816338c1608b354e1441fb0 (patch) | |
| tree | 5232bf3bf9c3f0c75569a2f3a03262931e71e9bc /common/rawaccel.hpp | |
| parent | Further work on guide (diff) | |
| download | rawaccel-9b4556c59f063e5c6816338c1608b354e1441fb0.tar.xz rawaccel-9b4556c59f063e5c6816338c1608b354e1441fb0.zip | |
Add improved logarithm style
Diffstat (limited to 'common/rawaccel.hpp')
| -rw-r--r-- | common/rawaccel.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/rawaccel.hpp b/common/rawaccel.hpp index 08ac322..8819302 100644 --- a/common/rawaccel.hpp +++ b/common/rawaccel.hpp @@ -8,6 +8,7 @@ #include "accel-linear.hpp" #include "accel-classic.hpp" +#include "accel-logarithm.hpp" #include "accel-natural.hpp" #include "accel-naturalgain.hpp" #include "accel-power.hpp" @@ -84,6 +85,7 @@ namespace rawaccel { case accel_mode::naturalgain: return vis(var.u.naturalgain); case accel_mode::sigmoidgain: return vis(var.u.sigmoidgain); case accel_mode::power: return vis(var.u.power); + case accel_mode::logarithm: return vis(var.u.logarithm); default: return vis(var.u.noaccel); } } @@ -98,6 +100,7 @@ namespace rawaccel { accel_naturalgain naturalgain; accel_sigmoidgain sigmoidgain; accel_power power; + accel_logarithm logarithm; accel_noaccel noaccel = {}; } u = {}; |