scale: Data Scalling

Description Usage Arguments Value See Also Examples

View source: R/Scalling.R

Description

Provide data scalling using z-transform, zero to one scalling and minus one to one scalling

Usage

1
scale(data, method = "zerotoone")

Arguments

data

matrix data

method

scalling technique use "z" for z-transform, "zerotoone" for zero to one scalling and "oneminuseone" minus one to one scalling

Value

scalled matrix data

See Also

fgwc for standard Fuzzy Geographically Weighted Clustering, fgwc.gsa for optimize using Gravitational Search Algorithm, spClustIndex for cluser validation, visualize for cluster visualizatiion

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#load data
data <- example

#zero to one scalling
data <- scale(data)
data <- scale(data,method="zerotoone")

#z-transform
data <- scale(data,method="z")

#minus one to one scalling
data <- scale(data,method="oneminuseone")

spatialClust documentation built on May 21, 2017, 3:58 a.m.

Search within the spatialClust package
Search all R packages, documentation and source code