normalize: Normalize a vector

Description Usage Arguments Examples

View source: R/utils.R

Description

Normalize a set of vectors contained in a matrix, the vectors are the rows of the matrix. A simple vector is possible using the metric space (R^n,Sigma)

Usage

1

Arguments

x

The vector to normalize

Examples

1
2
3
4
5
6
## Normalize a matrix
# z <- matrix(rnorm(100, 10, 3), nrow=4)
# normalize(z)
## Normalize a vector
# y <- rnorm(20, 5, 2)
# normalize(y)

IRTpp documentation built on May 29, 2017, 9:58 a.m.