get_sample_num_class_knn — Return the number of training samples stored in the training data of a k-nearest neighbors (k-NN) classifier.
get_sample_num_class_knn returns in NumSamples the number of training samples that are stored in the k-nearest neighbors (k-NN) classifier given by KNNHandle. get_sample_num_class_knn should be called before the individual training samples are accessed with get_sample_class_knn.
Handle of the k-NN classifier.
Number of stored training samples.
If KNNHandle is valid, the operator get_sample_num_class_knn returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.