basis_olda | R Documentation |
Orthogonal LDA (OLDA) is an extension of classical LDA where the discriminant vectors are orthogonal to each other.
basis_olda(data, class, d = 2)
data |
Numeric matrix or data.frame of the observations, coerced to matrix. |
class |
The class for each observation, coerced to a factor. |
d |
Number of dimensions in the projection space. |
A numeric matrix, an orthogonal basis that best distinguishes the
group means of class
.
Ye J (2005). "Characterization of a Family of Algorithms for Generalized Discriminant Analysis on Undersampled Problems." J. Mach. Learn. Res., 6, 483-502. ISSN 1532-4435.
Rdimtools::do.olda
Other basis producing functions:
basis_guided()
,
basis_half_circle()
,
basis_odp()
,
basis_onpp()
,
basis_pca()
dat <- scale_sd(wine[, 2:6])
clas <- wine$Type
basis_olda(data = dat, class = clas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.