public static String ArraytoString(double[] weight){
		StringBuilder string = new StringBuilder();
		for(int i = 0; i < weight.length; i++){
			string.append(weight[i]+" ");			
		}
		return string.toString().trim();
	}