Learn R Programming

mvc (version 1.3)

oFSkm: Objective Function (sum of cosines)...

Description

Objective Function (sum of cosines)

Usage

oFSkm(X, C, CIdx)

Arguments

X
data matrix (row-wise vectors in unit length).
C
concept vectors as matrix (row-wise in unit length).
CIdx
vector of length NROW(X) with natural numbers 1..k, indicating cluster for each data vector.

Value

Examples

Run this code
X=structure(c(0.707, 0.707, 0.707, 0.707), .Dim = c(2L, 2L))
C=structure(c(1, 0, 0, 1), .Dim = c(2L, 2L))
CIdx=c(2, 1)
oFSkm(X,C,CIdx) # 1.414
}

Run the code above in your browser using DataLab