fastwhiten: Simple fastwhitening function.

Description Usage Arguments Value Author(s) Examples

Description

whitens the input matrix using a fast SVD and returns the result. can select number of principal components to use. might want to scale the matrix before input.

Usage

1
wmat<-fastwhiten( mat , 50 )

Arguments

mat

input matrix

Value

matrix is output

Author(s)

Avants BB

Examples

1
2
3
4
5
6
mat<-replicate(400, rnorm(600)) 
print(mean(abs(cor(mat))))
wmat<-fastwhiten( scale( mat ) ) 
print(mean(abs(cor(wmat))))
wmat<-fastwhiten( scale( mat ), 20 ) 
print(mean(abs(cor(wmat))))

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.