public static enum SimpleVector.VectorNormType extends java.lang.Enum<SimpleVector.VectorNormType>
Enum Constant and Description |
---|
VEC_NORM_L1
A vectors' L_1 norm is the sum of its absolute values.
|
VEC_NORM_L2
A vectors' L_2 norm is the square root of the sum of squares of its entries.
|
VEC_NORM_LINF
A vectors' L_infinity norm is the maximum of its absolute values.
|
Modifier and Type | Method and Description |
---|---|
static SimpleVector.VectorNormType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SimpleVector.VectorNormType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleVector.VectorNormType VEC_NORM_L1
public static final SimpleVector.VectorNormType VEC_NORM_L2
public static final SimpleVector.VectorNormType VEC_NORM_LINF
public static SimpleVector.VectorNormType[] values()
for (SimpleVector.VectorNormType c : SimpleVector.VectorNormType.values()) System.out.println(c);
public static SimpleVector.VectorNormType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null