Description Usage Arguments Details Value Methods (by generic)
Computes the estimated target matrix based on a given NMF model.
The estimation depends on the underlying NMF model.
For example in the standard model V ~ W H, the target matrix is
estimated by the matrix product W H.
In other models, the estimate may depend on extra parameters/matrix
(cf. Non-smooth NMF in NMFns-class
).
1 |
object |
an object that inherit from class NMF |
... |
extra arguments to allow extension |
This function is a S4 generic function imported from stats::fitted in
the package stats.
It is implemented as a pure virtual method for objects of class
NMF
, meaning that concrete NMF models must provide a
definition for their corresponding class (i.e. sub-classes of
class NMF
).
See NMF
for more details.
the target matrix estimate as fitted by the model object
fitted(object = NMF)
: Pure virtual method for objects of class NMF
, that
should be overloaded by sub-classes, and throws an error if called.
fitted(object = NMFstd)
: Compute the target matrix estimate in standard NMF models.
The estimate matrix is computed as the product of the two matrix slots
W
and H
:
V ~ W H
fitted(object = NMFOffset)
: Computes the target matrix estimate for an NMFOffset object.
The estimate is computed as:
W H + offset
fitted(object = NMFns)
: Compute estimate for an NMFns object, according to the Nonsmooth NMF model
(cf. NMFns-class
).
Extra arguments in ...
are passed to method smoothing
, and are
typically used to pass a value for theta
, which is used to compute
the smoothing matrix instead of the one stored in object
.
fitted(object = NMFfit)
: Computes and return the estimated target matrix from an NMF model fitted with
function nmf
.
It is a shortcut for fitted(fit(object), ...)
, dispatching the call to
the fitted
method of the actual NMF model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.