Learn R Programming

geocmeans (version 0.3.4)

calcBelongMatrix: Calculate the membership matrix

Description

Calculate the membership matrix according to a set of centroids, the observed data and the fuzziness degree

Usage

calcBelongMatrix(centers, data, m, sigmas)

Value

A n * k matrix representing the probability of belonging of each observation to each cluster

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 n rows and p columns

m

A float representing the fuzziness degree

sigmas

A numeric vector for calculating the robust version of the FCM. Filled with ones if the classical version is required