The KNearest type exposes the following members.


Public methodClear
Clear the statistic model
(Inherited from StatModel.)
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release the classifer and all the memory associated with it
(Overrides DisposableObject..::..DisposeObject()()()().)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
(Inherited from DisposableObject.)
Public methodFindNearest
For each input vector (which are rows of the matrix samples) the method finds k <= get_max_k() nearest neighbor. In case of regression, the predicted result will be a mean value of the particular vector's neighbor responses. In case of classification the class is determined by voting.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad
Load the statistic model from file
(Inherited from StatModel.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodSave
Save the statistic model to file
(Inherited from StatModel.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTrain
Update the KNearest classifier using the specific traing data.

See Also