Java Number Range Create range(double[] min, double[] max, double[] min2, double[] max2)

Here you can find the source of range(double[] min, double[] max, double[] min2, double[] max2)

Description

range

License

Open Source License

Declaration

public static double range(double[] min, double[] max, double[] min2, double[] max2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double range(double[] min, double[] max, double[] min2, double[] max2) {
        if (min == null || max == null || min2 == null || max2 == null) {
            return 0;
        }/*w ww  . j  a  va2 s . c  om*/
        double d = 0;
        for (int i = 0; i < min.length; i++) {
            d += Math.abs(max[i] - max2[i]) + Math.abs(min[i] - min2[i]);
        }
        return d;
    }
}

Related

  1. range(double a, double b, double step)
  2. range(double value1, double value2)
  3. range(double[] data, int to, int stride, int numElementsEachStride)
  4. range(double[] vals)
  5. range(final int max)
  6. range(float number, float value, float range)
  7. range(int begin, int end)