p_ginv_sq: Power generalized inverse of a symetric matrix

Description Usage Arguments Details Value See Also Examples

View source: R/p_ginv_sq.R

Description

Calcualte the pwoer generated inverse of a symetric matrix by using eigen dicompostion.

Usage

1
p_ginv_sq(X, p)

Arguments

X

X is the data input matrix and it should be symetrix.

p

p is the power. For example, to calculate the inverse of X, p is set to be 1.

Details

p_ginv is use to calcuate X^(-p).

Value

The power inverse of the input matrix.

See Also

p_ginv

Examples

1
2
3
   X = matrix(rnorm(20,0,1),nrow=5,ncol=4);
   X_in = t(X) 
   pinv_X_in = p_ginv(X_in,2);

QRFCCA documentation built on Nov. 17, 2017, 7:20 a.m.