|
@@ -1,3 +1,5 @@
|
|
|
|
+#include <stdlib.h>
|
|
|
|
+#include <string.h>
|
|
|
|
|
|
#include "neuralNetwork.h"
|
|
#include "neuralNetwork.h"
|
|
//using namespace std;
|
|
//using namespace std;
|
|
@@ -6,7 +8,7 @@
|
|
#define M_PI 3.14159265358979323846
|
|
#define M_PI 3.14159265358979323846
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-float norm(void)//add desired mean, multiply to get desired SD
|
|
|
|
|
|
+static float norm(void)//add desired mean, multiply to get desired SD
|
|
{
|
|
{
|
|
static float kept = 0;
|
|
static float kept = 0;
|
|
static bool in = 0;
|
|
static bool in = 0;
|
|
@@ -413,4 +415,4 @@ void neuralNetwork::backpropigate(double* pattern, double OLR, double H2LR, doub
|
|
delete [] hiddenError1;
|
|
delete [] hiddenError1;
|
|
delete [] hiddenError2;
|
|
delete [] hiddenError2;
|
|
delete [] outputError;
|
|
delete [] outputError;
|
|
-}
|
|
|
|
|
|
+}
|