stdx: Standarization

View source: R/stdx.R

stdxR Documentation

Standarization

Description

Standarizes a vector or matrix, i.e., scales all the values in a way that the transformed values will be within the range [0, 1].

Usage

stdx(x, ...)

Arguments

x

vector, matrix or data.frame to be scaled

...

further arguments passed to or from other methods

Details

z = \frac{x - x_{min}}{x_{max}-x_{min}}

Author(s)

Mauricio Zambrano-Bigiarini, mzb.devel@gmail

See Also

scale, istdx

Examples

############
## Loading the monthly time series of precipitation within the Ebro River basin.
data(EbroPPtsMonthly)

# Standarizing only some values of 'EbroPPtsMonthly'
stdx(as.matrix(EbroPPtsMonthly[1:70,10:13]))

hzambran/hydroTSM documentation built on Feb. 3, 2024, 4:40 p.m.