ClassesClasses | | Operators

get_sample_num_class_knnT_get_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnn (Operator)

Name

get_sample_num_class_knnT_get_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnn — Return the number of training samples stored in the training data of a k-nearest neighbors (k-NN) classifier.

Signature

get_sample_num_class_knn( : : KNNHandle : NumSamples)

Herror T_get_sample_num_class_knn(const Htuple KNNHandle, Htuple* NumSamples)

void GetSampleNumClassKnn(const HTuple& KNNHandle, HTuple* NumSamples)

Hlong HClassKnn::GetSampleNumClassKnn() const

static void HOperatorSet.GetSampleNumClassKnn(HTuple KNNHandle, out HTuple numSamples)

int HClassKnn.GetSampleNumClassKnn()

Description

get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnn returns in NumSamplesNumSamplesNumSamplesNumSamplesnumSamples the number of training samples that are stored in the k-nearest neighbors (k-NN) classifier given by KNNHandleKNNHandleKNNHandleKNNHandleKNNHandle. get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnn should be called before the individual training samples are accessed with get_sample_class_knnget_sample_class_knnGetSampleClassKnnGetSampleClassKnnGetSampleClassKnn.

Execution Information

Parameters

KNNHandleKNNHandleKNNHandleKNNHandleKNNHandle (input_control)  class_knn HClassKnn, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the k-NN classifier.

NumSamplesNumSamplesNumSamplesNumSamplesnumSamples (output_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of stored training samples.

Result

If KNNHandleKNNHandleKNNHandleKNNHandleKNNHandle is valid, the operator get_sample_num_class_knnget_sample_num_class_knnGetSampleNumClassKnnGetSampleNumClassKnnGetSampleNumClassKnn returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

add_sample_class_knnadd_sample_class_knnAddSampleClassKnnAddSampleClassKnnAddSampleClassKnn

Possible Successors

get_sample_class_knnget_sample_class_knnGetSampleClassKnnGetSampleClassKnnGetSampleClassKnn

See also

create_class_knncreate_class_knnCreateClassKnnCreateClassKnnCreateClassKnn

Module

Foundation


ClassesClasses | | Operators