API Reference

Current

Table of the package models and corresponding function names used by these models.

Function \ ModelCCAWHTICALDAFAPPCAPCAKPCAMDS
fitxxxxxxxxx
transformxxxxxxxxx
predictx
indimxxxxxxxx
outdimxxxxxxxxx
meanxxxxxxx?
varxx???
covx?
corx
projectionxxxxxx
reconstructxxxx
loadings??xx???
eigvals????x
eigvecs?????
length
size

Note: ? refers to a possible implementation that is missing or called differently.

New

Function \ ModelWHTCCALDAMC-LDASS-LDAICAFAPPCAPCAKPCAMDS
fitxxxxxxxxxxx
transformx-----xx---
predict+x++++++
indim----xx---
outdim-----xx---
meanxxxxxxxx
varxxx?
covxx
cor+
projection?xxxxxxxx
reconstructxxxx
loadingsxxx+
eigvals+??xxx
eigvecs??x++
length++++
size+++++x++
  • StatsBase.AbstractDataTransform
    • Whitening
      • Interface: fit, transform
      • New: length, mean, size
  • StatsBase.RegressionModel
    • Interface: fit, predict
    • LinearDiscriminant
      • Functions: coef, dof, weights, evaluate, length
    • MulticlassLDA
      • Functions: size, mean, projection, length
    • SubspaceLDA
      • Functions: size, mean, projection, length, eigvals
    • CCA
      • Functions: size, mean, projection, predict, cor
    • Subtypes:
      • AbstractDimensionalityReduction
        • Interface: projection, var, reconstruct, loadings
        • Interface: projection == weights
      • Subtypes:
        • LinearDimensionalityReduction
          • Methods: ICA, PCA
        • NonlinearDimensionalityReduction
          • Methods: KPCA, MDS
            • Functions: modelmatrix(X),
        • LatentVariableModel or LatentVariableDimensionalityReduction
          • Methods: FA, PPCA
            • Functions: cov

Generic Interface

The models above share a type hierarchy, and the following methods are defined generically on its abstract types.

Base.sizeMethod
size(model::AbstractDimensionalityReduction, d::Int)

Returns the dimension of the input data if d == 1, the dimension of the output data if d == 2, otherwise throws error.

source
MultivariateStats.loadingsMethod
loadings(model::LinearDimensionalityReduction)

Return the model loadings (a.k.a. eigenvectors scaled up by the variances).

source

Internals

These are not part of the public API and may change without a breaking release.

MultivariateStats.calcscattermatMethod
calcscattermat([covestimator::CovarianceEstimator], Z::DenseMatrix)

Calculate the scatter matrix of centered data Z based on a covariance matrix calculated using covariance estimator covestimator (by default, SimpleCovariance()).

source
MultivariateStats.toindicesMethod
toindices(labels::AbstractVector)

Generate integer indices for the collection labels. Generated indices will be in 1:nc range where nc is a number of classes in the labels collection.

source