code: public static void scaleArray(final double[] array, final double factor){
  		for(int i = 0; i < array.length; i++){
  			array[i] *= factor;
  		}
  	}
docs: Multiplies elements of array by specified factor
  @param array of elements to scale
  @param factor to scale by