scale: Data Scalling

Description Usage Arguments Value See Also Examples

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")


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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.