Learn R Programming

ANTsR (version 1.0)

whiten: Simple whitening function.

Description

Whitens the input matrix using SVD and returns the result.

Usage

wmat<-whiten( mat  )

Arguments

mat

input matrix

k

rank to use

reducex

reduce the input matrix to k-size subspace

Value

matrix is output

Examples

Run this code
# NOT RUN {
mat <- matrix(c(rep(1,100),rep(0,200)),ncol=50)
wmat<-whiten( mat ) 
wmat2<-whiten( mat, 2, TRUE ) 
# }

Run the code above in your browser using DataLab