Learn R Programming

NMFN (version 2.0.1)

nnmf_mm: Non-negative Matrix Factorization via multiplicative update

Description

Non-negative Matrix Factorization - multiplicative update method

Usage

nnmf_mm(x, k, maxiter, eps)

Arguments

x

original input matrix

k

number of factors / components

maxiter

max number of iterations

eps

small threshold value

Value

W, H - returned decomposed matrices

References

Lee and Sung 2001

Examples

Run this code
# NOT RUN {
X <- matrix(1:12, 3, 4)

results <- nnmf(X, 2)
#which is equivalent to
results <- nnmf(X, 2, 'nnmf_mm')
# }

Run the code above in your browser using DataLab