Learn R Programming

Irescale (version 2.3.0)

standardize: Standardize the input vector

Description

standardize Calculates the z-values of the input vector. #'$$ z = \frac{vectorI - meanI}{\sqrt{varI}} $$

Usage

standardize(vectorI, W)

Arguments

vectorI

vector to be standardized.

W

weighed distance matrix

Value

z values

Examples

Run this code
# NOT RUN {
W<-matrix(runif(100, min=0, max=1),nrow=10,ncol=10)
vectorI<-runif(10, min=0, max=1)
standardize(vectorI,W)
# }

Run the code above in your browser using DataLab