calcBelongMatrix: Calculate the belonging matrix according to a set of...

Description Usage Arguments Value Examples

View source: R/geo-c-mean.R

Description

Calculate the belonging matrix according to a set of centroids, the observed data and the fuzzyness degree

Usage

1
calcBelongMatrix(centers, data, m)

Arguments

centers

A matrix or a dataframe representing the centers of the clusters with p columns and k rows

data

A dataframe or matrix representing the observed data with nrows and p columns

m

An integer representing the fuzzyness degree

Value

A n X k matrix represening the belongings of each datapoint to each cluster

Examples

1
2
3
data <- matrix(c(1,4,2,5,3,6,7,8,9,10,11,12),nrow=6,ncol=2)
centers <- data[1:2,]
calcBelongMatrix(centers,data,1.5)

jejeplusfaim/geoCmeans documentation built on Dec. 23, 2019, 7:31 p.m.