diff options
| author | Mel <einebeere@gmail.com> | 2023-12-07 01:16:11 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-12-07 01:16:11 +0100 |
| commit | c1a0768e55604687e82243bf64acd88d97a37ba0 (patch) | |
| tree | 9ab0e1a5a1a9e3e8089c5827fa0c275f88acf1d4 /src/Math/Sigmoid.hpp | |
| parent | ca8b16620ec207f2b32edd1f5d46f7b0bfb0a14c (diff) | |
| download | meowcraft-c1a0768e55604687e82243bf64acd88d97a37ba0.tar.zst meowcraft-c1a0768e55604687e82243bf64acd88d97a37ba0.zip | |
Consolidate mathematical functions into single file and add more
Diffstat (limited to 'src/Math/Sigmoid.hpp')
| -rw-r--r-- | src/Math/Sigmoid.hpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Math/Sigmoid.hpp b/src/Math/Sigmoid.hpp deleted file mode 100644 index f2fa009..0000000 --- a/src/Math/Sigmoid.hpp +++ /dev/null @@ -1,13 +0,0 @@ -#pragma once - -#include <cmath> -#include "Constants.hpp" - -namespace Math { - -template <typename T> -T sigmoid(T x) { - return 1 / (1 + std::pow(E, -x)); -} - -} |
