@@ -0,0 +1,2048 @@
+/*%0A*  Created on: 2015%0A*  Author: Mizael Martinez%0A*/%0A/*%0AThe MIT License (MIT)%0A%0ACopyright (c) 2015 Martinez Mizael%0A%0APermission is hereby granted, free of charge, to any person obtaining a copy%0Aof this software and associated documentation files (the %22Software%22), to deal%0Ain the Software without restriction, including without limitation the rights%0Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell%0Acopies of the Software, and to permit persons to whom the Software is%0Afurnished to do so, subject to the following conditions:%0A%0AThe above copyright notice and this permission notice shall be included in all%0Acopies or substantial portions of the Software.%0A%0ATHE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0AAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0ALIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,%0AOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE%0ASOFTWARE.%0A*/%0Apackage mizaelmtz.rna.principal;%0Apublic class Capa %7B%0A%09private int numeroNeuronas;%0A%09private double %5B%5D%5B%5Dpeso;%0A%09private double %5B%5Dentrada;%0A%09%0A%09private Neurona %5B%5D neuronas;%0A%09private double%5B%5D salida;%0A%09public double %5B%5D calcularSalida()%0A%09%7B%0A%09%09this.neuronas=new Neurona%5Bthis.numeroNeuronas%5D;%0A%09%09this.salida=new double%5Bthis.numeroNeuronas%5D;%0A%09%09for(int i=0;i%3Cthis.salida.length;i++)%0A%09%09%7B%0A%09%09%09this.neuronas%5Bi%5D=new Neurona();%0A%09%09%09this.salida%5Bi%5D=this.neuronas%5Bi%5D.sigmoidal(this.entrada,this.peso%5Bi%5D);%0A%09%09%7D%0A%09%09return this.salida;%0A%09%7D%0A%09public int getNumeroNeuronas() %7B%0A%09%09return numeroNeuronas;%0A%09%7D%0A%09public void setNumeroNeuronas(int numeroNeuronas) %7B%0A%09%09this.numeroNeuronas = numeroNeuronas;%0A%09%7D%0A%09public double%5B%5D%5B%5D getPeso() %7B%0A%09%09return peso;%0A%09%7D%0A%09public void setPeso(double%5B%5D%5B%5D peso) %7B%0A%09%09this.peso = peso;%0A%09%7D%0A%09public double%5B%5D getEntrada() %7B%0A%09%09return entrada;%0A%09%7D%0A%09public void setEntrada(double%5B%5D entrada) %7B%0A%09%09this.entrada = entrada;%0A%09%7D%0A%7D%0A

Create Capa.java