public enum PerceptronClass extends Enum<PerceptronClass>
| Enum Constant and Description |
|---|
FALSE
when the sign function returns -1
|
NONE
when the sign function returns 0
|
TRUE |
| Modifier and Type | Method and Description |
|---|---|
static PerceptronClass |
fromSign(double d) |
abstract int |
v() |
static PerceptronClass |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PerceptronClass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PerceptronClass FALSE
public static final PerceptronClass NONE
public static final PerceptronClass TRUE
public static PerceptronClass[] values()
for (PerceptronClass c : PerceptronClass.values()) System.out.println(c);
public static PerceptronClass valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract int v()
public static PerceptronClass fromSign(double d)
d -