Learn R Programming

NMF (version 0.5.06)

basis-coef: Get/Set the matrix factors in a NMF model

Description

basis and basis<- are S4 generic functions which respectively extract and set the matrix of basis vectors (i.e. the first matrix factor) of a NMF model. For example, in the case of the standard NMF model $V \equiv WH$, method basis will return matrix $W$. coef and coef<- are S4 methods defined for the associated generic functions from package stats (See coef). They respectively extract and set the matrix of mixture coefficients (i.e. the second matrix factor) of a NMF model. For example, in the case of the standard NMF model $V \equiv WH$, method coef will return matrix $H$. Methods coefficients and coefficients<- are simple aliases for methods coef and coef<- respectively.

Arguments

See Also

NMF, NMFstd, NMFfit