public static double[] multiply(double[] feature, double constant) {
		int len = feature.length;
		double[] result = new double[len];
		for (int i = 0; i < len; i++) {
			result[i] = feature[i] * constant; 
		}
		return result;
	}