normalize: Normalize a vector

Description Usage Arguments Examples

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)

SICSresearch/IRTpp documentation built on May 9, 2019, 11:11 a.m.