public enum WeightsType extends java.lang.Enum<WeightsType>
Enum Constant | Description |
---|---|
EXPONENTIAL |
Constant indicating that with each level the weight should increase exponentially, e.g., 1.0, 2.0., 4.0, 8.0, 16.0.
|
LINEAR |
Constant indicating that with each level the weight should increase by one, e.g., 1.0, 2.0., 3.0, 4.0, 5.0.
|
ONES |
Constant indicating that all weights should be equal to 1.0.
|
SQUARE |
Constant indicating that with each level the weight should be squared level, e.g., 1.0, 4.0., 9.0, 16.0, 25.0.
|
Modifier and Type | Method | Description |
---|---|---|
static WeightsType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static WeightsType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WeightsType ONES
public static final WeightsType LINEAR
public static final WeightsType EXPONENTIAL
public static final WeightsType SQUARE
public static WeightsType[] values()
for (WeightsType c : WeightsType.values()) System.out.println(c);
public static WeightsType 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