This class implements the virtual interface
NMFStrategy for NMF algorithms that are
implemented by a single workhorse R function.
(y='matrix', x='NMFfit'), where
yis the target matrix to approximate and
xis the NMF model assumed to be seeded with an appropriate initial value -- as it is done internally by function
Note that argument names currently do not matter, but it is recommended to name them as specified above.
signature(object = "NMFStrategyFunction"): Returns the single R function that implements the NMF algorithm -- as stored in slot
signature(object = "NMFStrategyFunction", value = "function"): Sets the function that implements the NMF algorithm, stored in slot
signature(object = "NMFStrategyFunction", y = "matrix", x = "NMFfit"): Runs the NMF algorithms implemented by the single R function -- and stored in slot
object, on the data object
xas starting point. It is equivalent to calling
object@algorithm(y, x, ...).
This method is usually not called directly, but only via
nmf, which takes care of many
other details such as seeding the computation, handling
RNG settings, or setting up parallelisation.