CentroidClassifier: Centroid Classifier

CentroidClassifierR Documentation

Centroid Classifier

Description

Assigns each point of data the class of its centroid.

Usage

CentroidClassifier(data, cls, testData, centroidMethod)

Arguments

data

A matrix containing the learn data for the classifier.

cls

The clusternumber of each point of data. A vector.

testData

The data to be classified. Use Data, if not given.

centroidMethod

The centroid method to be used. Could be the standard centroid or mean.

Value

assignedCls

The classes assigned to the data.

uniqueCls

(NumberOfClass)The unique classes in Cls.

centroid(NumberOfClass)

Centroid(i) is the centroid of the data points in the class with the number i.

Author(s)

Raphael Paebst


Mthrun/Classifiers documentation built on June 28, 2023, 9:28 a.m.