knnor_is_same_class: Validate a new point

View source: R/RcppExports.R

knnor_is_same_classR Documentation

Validate a new point

Description

Function written in C++ for validating a new point (KNNOR-Validation)

Usage

knnor_is_same_class(new_point, dataset, labels, k)

Arguments

new_point

⁠1-D array (vector)⁠ new data point to be validated before adding (with times*features elements)

dataset

⁠2-D array (matrix)⁠ current embeddings (with size batch x times*features)

labels

⁠1-D array (vector)⁠ of integers with batch elements

k

⁠unsigned integer⁠ number of nearest neighbors

Value

Returns TRUE if a new point can be added, otherwise - FALSE


aifeducation documentation built on Nov. 19, 2025, 5:08 p.m.