Java Euclidean euclideanLength(double[] vector)

Here you can find the source of euclideanLength(double[] vector)

Description

euclidean Length

License

Open Source License

Declaration

public static double euclideanLength(double[] vector) 

Method Source Code

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

public class Main {
    public static double euclideanLength(double[] vector) {
        double x2 = 0;
        for (double d : vector) {
            x2 += d * d;/*  www  .  j  av  a 2 s.co m*/
        }
        return Math.sqrt(x2);
    }
}

Related

  1. euclideanGCD(final long firstNumerator, final long secondNumerator)
  2. euclideanGcd(long a, long b)
  3. euclideanMod(final float x, final float y)
  4. euclideanNorm(float vector[])
  5. euclideanNormSquared(double[] x1, double[] x2)