Extracting RNG Data from NMF Objects
getRNG1(object, ...) .getRNG(object, ...)
object |
an R object from which RNG settings can be
extracted, e.g. an integer vector containing a suitable
value for |
... |
extra arguments to allow extension and passed
to a suitable S4 method |
signature(object = "NMFfitXn")
:
Returns the RNG settings used for the best fit.
This method throws an error if the object is empty.
signature(object = "NMFfitX")
:
Returns the RNG settings used for the first NMF run of
multiple NMF runs.
signature(object = "NMFfitX1")
:
Returns the RNG settings used to compute the first of all
NMF runs, amongst which object
was selected as the
best fit.
signature(object = "NMFfitXn")
:
Returns the RNG settings used for the first run.
This method throws an error if the object is empty.
# For multiple NMF runs, the RNG settings used for the first run is also stored V <- rmatrix(20,10) res <- nmf(V, 3, nrun=3) # RNG used for the best fit getRNG(res) # RNG used for the first of all fits getRNG1(res) # they may differ if the best fit is not the first one rng.equal(res, getRNG1(res))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.