java.lang.Object
org.apache.commons.numbers.arrays.SafeNorm
public class SafeNorm
extends java.lang.Object
Computes the Cartesian norm (2-norm), handling both overflow and underflow.
Translation of the
minpack
"enorm" subroutine.
-
Constructor Summary
Constructors
| Constructor |
Description |
SafeNorm() |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
static double |
value(double[] v) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
public static double value(double[] v)
- Parameters:
v - Cartesian coordinates.
- Returns:
- the 2-norm of the vector.