| Package | Description | 
|---|---|
| com.pervasive.datarush.analytics.knn | Provides an implementation of the KNN algorithm using DataRush's sparse data API. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | VotingClassification | 
| Modifier and Type | Method and Description | 
|---|---|
| static ClassificationScheme | ClassificationScheme. avg()Resolves the class of the query record by doing a straight
 average of all neighbors. | 
| ClassificationScheme | KNNClassifier. getClassificationScheme()Gets how the classification of a record in the query data
 is determined from the classifications of its nearest neighbors
 in the example data. | 
| static ClassificationScheme | ClassificationScheme. vote()Resolves the class of the query records by simple
 plurality of all neighbors (alternatively, the mode
 of the neighbors). | 
| Modifier and Type | Method and Description | 
|---|---|
| void | KNNClassifier. setClassificationScheme(ClassificationScheme scheme)Specifies how to determine the classification of a record
 in the query data from the classifications of its nearest neighbors
 in the example data. | 
Copyright © 2016 Actian Corporation. All rights reserved.