Dateien nach „BSP_1_G“ hochladen
This commit is contained in:
parent
174e3841cd
commit
a77a9f9fca
4 changed files with 102 additions and 0 deletions
11
BSP_1_G/sigmoid.cpp
Normal file
11
BSP_1_G/sigmoid.cpp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue