Java Array Max Value maxNorm(double[] arr)

Here you can find the source of maxNorm(double[] arr)

Description

max Norm

License

Apache License

Declaration

public static double maxNorm(double[] arr) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static double maxNorm(double[] arr) {
        double norm = 0;
        for (double number : arr) {
            double abs = Math.abs(number);
            if (abs > norm) {
                norm = abs;//w  w  w. ja v  a  2 s .  c  om
            }
        }
        return norm;
    }
}

Related

  1. maxJoinArray(float[] array1, float[] array2)
  2. maxLength(String... array)
  3. maxLikelihood(int[] i, long[] Xi)
  4. maxLimit(int receiver, int... maxBound)
  5. maxLocation(double[] list)
  6. maxNorm(double[] x1, double[] x2)
  7. maxNormWithAbort(double[] x1, double[] x2, double limit)
  8. maxNum(Number iArr[])
  9. maxOfSortedValues(double[] sortedValues)