public enum NNStrategy extends Enum<NNStrategy>
Enum Constant and Description |
---|
SIMPLE
The default strategy.
|
WEIGHTED
A refinement of the k-NN classification algorithm is to weigh the contribution of each of the k neighbors
according to their distance to the query point, giving greater weight to closer neighbors.
|
Modifier and Type | Method and Description |
---|---|
static NNStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NNStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NNStrategy SIMPLE
public static final NNStrategy WEIGHTED
public static NNStrategy[] values()
for (NNStrategy c : NNStrategy.values()) System.out.println(c);
public static NNStrategy 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 null
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019