CentroidClassifier | R Documentation |
Assigns each point of data the class of its centroid.
CentroidClassifier(data, cls, testData, centroidMethod)
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. |
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. |
Raphael Paebst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.