public static interface ClassificationScheme.Classifier
Modifier and Type | Method and Description |
---|---|
void |
addValue(ClassificationScheme.Distance distance,
double value)
Specifies a new neighbor value and the distance
to that neighbor.
|
double |
getClassification()
Gets the classification to assign based on the
specified neighbors.
|
void |
initialize()
Initialize the state of the classifier.
|
void initialize()
void addValue(ClassificationScheme.Distance distance, double value)
Called once per neighbor for each query record. Neighbors will be provided in order of increasing distance. That is, the first value is always of the nearest neighbor.
distance
- the distance to the neighborvalue
- the neighbor's classificationdouble getClassification()
Copyright © 2024 Actian Corporation. All rights reserved.