db.normalize {RGeostats}R Documentation

Normalize a set of variables

Description

Normalize a set of variables

Usage

db.normalize(db, names=db.getname(db,"z",1), oper = "prop", 
             center = NA, stdv=NA,
             radix = "Norm", modify.target = db.locmod(), flag.replace=FALSE)

Arguments

db

The db-class structure where the variables are stored

names

List of names of attributes to be normalized. For more information see db.ident.

oper

The code giving the type of normalization to be performed:

  • "mean" : Normalize the mean of each variable

  • "stdv" : Normalize the standard deviation of each variable

  • "scal" " Normalize the mean and the standard deviation of each variable

  • "prop" : Normalize the input variables (restrained to [0,1]) as proportions

center

Defines the value for the mean of the normalized variable (if provided). Otherwise it will be set to 0.

stdv

Defines the value for the standard deviation of the normalized variable (if provided). Otherwise it will be set to 1.

radix

Radix of the name given to the variables storing the results in the target Db.

modify.target

Decides whether or not the newly created variables will have their locator defined or not. For more information, see db.locmod.

flag.replace

When TRUE, each initial variable is replaced by the corresponding modified variable

Value

The target Db where the following variables have been added: - as many variables as input variables


[Package RGeostats version 14.0.10 Index]