initializeSPA: The successive projection algorithm, a useful method for...

Description Usage Arguments Value Author(s) Examples

View source: R/initializeSPA.R

Description

The successive projection algorithm, a useful method for initializing the NMF source matrix

Usage

1
initializeSPA(data, nSources)

Arguments

data

Input data matrix. The columns correspond to the data points, each row represents one feature

nSources

Number of sources to be obtained

Value

Matrix with initialized sources as its columns

Author(s)

Nicolas Sauwen

Examples

1
2
3
4
5
# random data
X <- matrix(runif(10*20), 10,20)

# Create initial source matrix for 3 sources
W0 <- initializeSPA(X,3)

hNMF documentation built on Jan. 8, 2021, 5:42 p.m.

Related to initializeSPA in hNMF...