basis-methods {NMF} | R Documentation |
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.
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.
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.
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.
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.
NMF, NMFstd, NMFfit