whiten: Simple whitening function.

Description Usage Arguments Value Author(s) Examples

View source: R/whiten.R

Description

Whitens the input matrix using SVD and returns the result.

Usage

1
whiten(x, k = NULL, reducex = FALSE)

Arguments

x

input matrix

k

rank to use

reducex

reduce the input matrix to k-size subspace

Value

matrix is output

Author(s)

Avants BB

Examples

1
2
3
mat <- matrix(rnorm(300),ncol=50)
wmat<-whiten( mat )
wmat2<-whiten( mat, 2, TRUE )

neuroconductor/ANTsR documentation built on Oct. 11, 2020, 8:14 a.m.