smoothing | R Documentation |
The function smoothing
builds a smoothing matrix
for using in Nonsmooth NMF models.
smoothing(x, theta = x@theta, ...)
x |
a object of class |
theta |
the smoothing parameter (numeric) between 0 and 1. |
... |
extra arguments to allow extension (not used) |
For a r
-rank NMF, the smoothing matrix of parameter
\theta
is built as follows:
S = (1-\theta)I +
\frac{\theta}{r} 11^T ,
where I
is the identity
matrix and 1
is a vector of ones (cf.
NMFns-class
for more details).
if x
estimates a r
-rank NMF, then the result
is a r \times r
square matrix.
x <- nmfModel(3, model='NMFns')
smoothing(x)
smoothing(x, 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.