simSyn {smdc} | R Documentation |
This function synthesize the similarity.
simSyn(sims, weight)
sims |
List of similarity matrix. |
weight |
Weight vector of similarity matrix. |
Weighted sum of similarity matrix
Masaaki TAKADA
## The function is currently defined as function (sims, weight) { len = length(sims) if (len != length(weight)) { stop(message = "different lengths between sims and weight") } sim <- weight[1] * sims[[1]] for (i in 2:len) { sim <- sim + weight[i] * sims[[i]] } return(sim) }