Dateien nach „BSP_1_G“ hochladen

This commit is contained in:
Georg Thomas Mandl 2025-10-23 00:49:40 +02:00
commit a77a9f9fca
4 changed files with 102 additions and 0 deletions

11
BSP_1_G/sigmoid.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "sigmoid.h"
double sigmoid(const double &x)
{
return 1.0/(1+exp(-x));
}
double xk(const int & k, const int & nm)
{
return 10*k/(nm-1) - 5;
}