TKNearestNeighbors Component
Properties Methods Events
Implementation of the K-NN (K Nearest Neighbors) classification algorithm.

Unit
Classifier

Declaration
TKNearestNeighbors = class(TClassifier)

Hierarchy
TComponent <--TClassifier <--TKNearestNeighbors

Subclasses
None

Description
K-NN searches for K nearest neighbors, to the example that we want to classify, and then classifies to the majority class of the nearest neighbors. The algorithm works very well especially for real valued attributes. (real domains). The algorithm gives very good results, but its main disadvantage is slow performance (computational complexity O(n2)).

Introduced Properties
Classes 
DistanceModel 
ExampleCount 
InternalPruning 
KNeighbors 
LeaveOneOut 
OnFirstRecord 
OnLastRecord 
StoreExamples 

Introduced Methods
Classify 
ClassifyResponse 
ClassifyTest 
ClassIndex 
ClassName 
Clear 
Create 
Destroy 
InsertNeighbors 
Learn 
LearnIndex 
LoadFromStream 
Reset 
SaveToStream 
SoftReset 

Introduced Events
OnIndexNextRecord 
OnNameNextRecord 
OnPopPosition 
OnPushPosition 


Help for MtxVec v2.1. (c) 2006 Dew Research.
http://www.dewresearch.com