sepNMF: Single Data Set Decomposition with Nonnegative Matrix...

Description Usage Arguments Value Examples

View source: R/sepNMF.R

Description

Apply NMF (Nonnegative Matrix Factorization) to a single data set

Usage

1
sepNMF(dataset, comp_num, weighting = NULL, perturbation = 1e-04)

Arguments

dataset

A dataframe/matrix to be decomposed

comp_num

Number of NMFs to be extracted

weighting

Weighting of each dataset, initialized to be NULL

perturbation

A small perturbation to ensure nmf works well

Value

A list of scores and component

Examples

1
2
3
dataset = list(matrix(runif(5000, 1, 2), nrow = 100, ncol = 50))
comp_num = 2
res_sepNMF = sepNMF(dataset, comp_num)

CHuanSite/PJD documentation built on Oct. 26, 2021, 1 p.m.