knn_combine: K-Nearest Neighbor that Combines Results from Two Distance...

Description Usage Arguments

View source: R/knn_combine.R

Description

This runs the KNN classification algorithm that accepts 2 distance matrices; finding the nearest neighbors from both and returning the majority result

Usage

1
knn_combine(data, first_distance, second_distance, training_labels, k)

Arguments

data

The matrix containing the data to classify

first_distance

The first distance matrix

second_distance

The second distance matrix

training_labels

The classification labels to compare to

K

The value of K


bhioswego/CBRMSR documentation built on Dec. 6, 2020, 3:16 p.m.