public BackPropagation(int inputUnits, int hiddenUnits, int outputUnits){        
        constant = 0.1;
        n = inputUnits;
        m = hiddenUnits;
        s = outputUnits;        
        double tmp;
        // INICIALIZAR PESOS
        wij = new double [m][n+1];        
        for(int i=0; i< m; i++){
            for(int j=0; j< n+1; j++){
                tmp = Math.random();
                if(tmp<0.3)
                    wij[i][j] = 0.3;
                else
                    wij[i][j] = tmp;
            }
        }
        outw = new double [s][m+1];        
        for(int i=0; i<s; i++)
            for(int j=0; j< m+1; j++)
                outw[i][j] = Math.random();
        
        capaOculta = new NeuronLayer(wij);
        capaSalida = new NeuronLayer(outw);
    }