private void ajustarPesos(int numeroEntradasIniciales, String [] entradas){
		System.out.println("*** Ajuste de pesos ***");
		int entradasRecorrer = 0;
		String [] a;
		
		for(int m = 0; m < this.getNumeroCapasOcultas(); m++){
			for(int i = 0; i < this.getNumeroNeuronasPorCapa(); i++){
				
				//La capa oculta 1 (0) recibe 9 entradas (8 y 1 thres)
				if(m == 0){
					entradasRecorrer = numeroEntradasIniciales;
					a = entradas;
				}else{
					entradasRecorrer = this.getNumeroNeuronasPorCapa() + 1;
					
					//Agregar entrada umbral
					String umbral [] = {"-1"};
					String[] temp = new String[this.salidasPorCapa[m-1].length+1];
					System.arraycopy(umbral, 0, temp, 0, umbral.length);
					System.arraycopy(this.salidasPorCapa[m-1], 0, temp, umbral.length, this.salidasPorCapa[m-1].length);
					
					a = temp;
				}
				
				for(int j = 0; j < entradasRecorrer; j++){
					this.setPesoLlaveEntera(m ,i, j, this.getPesoLlaveEntera(m, i, j) + (-1 * this.razonAprendizaje) * this.getSensibilidades(m, i) * Double.valueOf(a[j]));
				}
			}
		}
		
		//Ajuste de pesos de la neurona de salida Adaline
		int m = this.getNumeroCapasOcultas();
		String[] entradaCapaAdaline = this.salidasPorCapa[m-1];
		
		//Agregar entrada umbral
		String umbral [] = {"-1"};
		String[] temp = new String[entradaCapaAdaline.length+1];
		System.arraycopy(umbral, 0, temp, 0, umbral.length);
		System.arraycopy(entradaCapaAdaline, 0, temp, umbral.length, entradaCapaAdaline.length);
		entradaCapaAdaline = temp;
		
		for(int i = 0; i < entradaCapaAdaline.length; i++){ 
			this.setPesoAdaline(i, this.getPesoAdaline(i) + (-1 * this.razonAprendizaje) * this.sensibilidadAdaline * Double.valueOf(entradaCapaAdaline[i]));
			
		}
		
		
	}