SpatialCFuzzyMeans: spatial version of the c-mean algorithm

Description Usage Arguments Examples

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

Description

spatial version of the c-mean algorithm

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
SpatialCFuzzyMeans(
  data,
  nblistw,
  k,
  m,
  alpha,
  maxiter = 500,
  tol = 0.01,
  standardize = TRUE
)

Arguments

data

A dataframe with only numerical variable

nblistw

A list.w object describing the neighbours typically produced by the spdep package

k

An integer describing the number of cluster to find

m

An integer for the fuzzyness degree

maxiter

An integer for the maximum number of iteration

tol

The tolerance criterion used in the evaluateMatrices function for convergence assessment

standardize

A boolean to specify if the variable must be centered and reduce (default = True)

Examples

1
2
3
mat1 <- rbind(c(0.45,0.55),c(0.35,0.65),c(0.8,0.2),c(0.5,0.5),c(0.9,0.1),c(0.7,0.3))
mat2 <- rbind(c(0.45,0.55),c(0.4,0.60),c(0.8,0.2),c(0.45,0.55),c(0.95,0.05),c(0.7,0.3))
evaluateMatrices(mat1,mat2,0.01)

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