@@ -0,0 +1,1965 @@
+import java.io.BufferedWriter;%0Apublic class HiddenLayerNode %7B%0A// public double R = 1;%0Apublic double InputVector%5B%5D;%0Apublic double CentreVector%5B%5D;%0Apublic double output;%0Apublic double gausianresult;%0Apublic double eucleidianDistance;%0Apublic double S; // Sigma%0Apublic double N; // Learning Rate%0Apublic double C; // Coefficient%0A// public double error;%0A HiddenLayerNode(double s, double c, double n) %7B%0A CentreVector = new double%5B46%5D;%0A InputVector = new double%5B46%5D;%0A this.C = c;%0A this.N = n;%0A this.S = s;%0A %7D%0Adouble computeEucleidianDistance() %7B%0A double distance = 0;%0A for (int i = 0; i %3C 46; i++) %7B%0A distance = distance%0A + Math.pow((this.InputVector%5Bi%5D -%0Athis.CentreVector%5Bi%5D), 2);%0A %7D%0A distance = Math.sqrt(distance);%0A eucleidianDistance = distance;%0A return distance;%0A %7D%0Adouble GaussianFunction() %7B%0A gausianresult = Math.exp((-1 *%0AMath.pow(eucleidianDistance, 2))%0A / Math.pow(S, 2));%0A return gausianresult;%0A %7D%0Adouble computeOutput() %7B%0A output = this.C * this.gausianresult;%0A return output;%0A %7D%0A// double computeThisNeuronError(double epi8imito) %7B%0A// this.error=epi8imito-this.output;%0A// return this.error;%0A// %7D%0Apublic void changeC(double error, double output) %7B%0A this.C = this.C + this.N * error * output;%0A %7D %0Apublic void changeCentre(double error) %7B%0A double difference = 0;%0A for (int i = 0; i %3C 46; i++) %7B%0A difference = (this.N * this.C * error *%0Athis.gausianresult * (this.InputVector%5Bi%5D - this.CentreVector%5Bi%5D))%0A / Math.pow(this.S, 2);%0A this.CentreVector%5Bi%5D = this.CentreVector%5Bi%5D +%0Adifference;%0A /*%0A * if(this.CentreVector%5Bi%5D%3C0)%7B%0Athis.CentreVector%5Bi%5D=0; %7D%0A */%0A %7D%0A %7D%0Apublic void changeS(double error) %7B%0A this.S = this.S%0A + (this.N * this.C * error *%0Athis.gausianresult * this.output)%0A / Math.pow(this.S, 3);%0A %7D%0Apublic void printCentre(BufferedWriter out) %7B%0A try %7B%0A out.write(%22%5CnCentre = %22);%0A for (int i = 0; i %3C 4; i++) %7B%0A out.write(this.CentreVector%5Bi%5D + %22 %22);%0A %7D%0A %7D catch (Exception e) %7B// Catch exception if any%0A System.err.println(%22Error: %22 + e.getMessage());%0A %7D%0A %7D%0A%7D%0A

Create HiddenLayerNode.java