-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgeigen.Rd
53 lines (49 loc) · 1.26 KB
/
geigen.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
\name{geigen}
\alias{geigen}
\title{
Generalized eigenanalysis
}
\description{
Find matrices L and M to maximize
tr(L'AM) / sqrt(tr(L'BL) tr(M'CM'))
where A = a p x q matrix, B = p x p symmetric, positive definite
matrix, B = q x q symmetric positive definite matrix, L = p x s
matrix, and M = q x s matrix, where s = the number of non-zero
generalized eigenvalues of A.
}
\usage{
geigen(Amat, Bmat, Cmat)
}
\arguments{
\item{Amat}{ a numeric matrix }
\item{Bmat}{
a symmetric, positive definite matrix with dimension = number of
rows of A
}
\item{Cmat}{
a symmetric, positive definite matrix with dimension = number of
columns of A
}
}
\value{
list(values, Lmat, Mmat)
}
\references{
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009),
\emph{Functional data analysis with R and Matlab}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005),
\emph{Functional Data Analysis, 2nd ed.}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002),
\emph{Applied Functional Data Analysis}, Springer, New York.
}
\seealso{
\code{\link{eigen}}
}
\examples{
A <- matrix(1:6, 2)
B <- matrix(c(2, 1, 1, 2), 2)
C <- diag(1:3)
ABC <- geigen(A, B, C)
}
% docclass is function
\keyword{array}