protected void train(double limiar)
	{
		double[] err = new double[w.length];
		double t = 9999;
		
		/*while (t > limiar)
		{*/
		for(int k = 0; k < 100000; k++)
		{
			t = 0;
			for(int i = 0; i < w.length; i ++)
			{
				err[i] = erro(i);
				w[i] = w[i] - (ETA*erro(i));
				err[i] = err[i] - erro(i);
			}
			
			for(int i = 0; i < err.length; i++)
			{
				t += err[i]; 
			}
			//System.out.println("t = " + t);
			
		}
		//}
	}