Learn R Programming

hNMF (version 1.0)

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

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
# random data
X <- matrix(runif(10*20), 10,20)

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

Run the code above in your browser using DataLab