public static double[] minus(double[] weight, double[] secondTerm) {
		assert weight.length == secondTerm.length;
		double[] result = new double[weight.length];
		for(int i = 0; i < weight.length; i++ ){
			result[i] = weight[i] - secondTerm[i];
		}
		return result;
	}