From c1a0768e55604687e82243bf64acd88d97a37ba0 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 7 Dec 2023 01:16:11 +0100 Subject: Consolidate mathematical functions into single file and add more --- src/Math/Sigmoid.hpp | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/Math/Sigmoid.hpp (limited to 'src/Math/Sigmoid.hpp') 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 -#include "Constants.hpp" - -namespace Math { - -template -T sigmoid(T x) { - return 1 / (1 + std::pow(E, -x)); -} - -} -- cgit 1.4.1