basis_odp: The basis of Orthogonal Discriminant Projection (ODP)
Description
Orthogonal Discriminant Projection (ODP) is a linear dimension reduction
method with class supervision. It maximizes weighted difference between local
and non-local scatter while local information is also preserved by
constructing a neighborhood graph.
Usage
basis_odp(data, class, d = 2, type = c("proportion", 0.1), ...)
Arguments
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.
of class.
type
A vector specifying the neighborhood graph construction.
Expects; c("knn", k), c("enn", radius), or c("proportion",ratio).
Defaults to c("knn", sqrt(nrow(data))), nearest neighbors equal to the
square root of observations.