basis-methods {NMF}R Documentation

Extract/Set the matrix of basis vectors from 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.

Methods

basis
signature(object = "NMF"): Extracts the matrix of basis vectors from NMF model object.

Note that it is implemented as a pure virtual method, that must be overloaded by sub-classes that implement concrete NMF models. It throws an error if directly called. See NMF for more details.

basis<-
signature(object = "NMF", value = "matrix": Sets the matrix of basis vectors from NMF model object.

Note that it is implemented as a pure virtual method, that must be overloaded by sub-classes that implement concrete NMF models. It throws an error if directly called. See NMF for more details.

coef
signature(object = "NMF"): Extracts the matrix of mixture coefficients from NMF model object.

Note that it is implemented as a pure virtual method, that must be overloaded by sub-classes that implement concrete NMF models. It throws an error if directly called. See NMF for more details.

coef<-
signature(object = "NMF", value = "matrix": Sets the matrix of mixture coefficients from NMF model object.

Note that it is implemented as a pure virtual method, that must be overloaded by sub-classes that implement concrete NMF models. It throws an error if directly called. See NMF for more details.

See Also

NMF, NMFstd, NMFfit


[Package NMF version 0.2.4 Index]