The nmf
function returns objects that contain embedded RNG data,
that can be used to exactly reproduce any computation.
These data can be extracted using dedicated methods for the S4 generics
getRNG
and getRNG1
.
getRNG1(object, ...) .getRNG(object, ...)
.Random.seed
or embedded RNG data, e.g.,
in S3/S4 slot rng
or rng$noise
..getRNG
or
.setRNG
.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.