initializeSPA {hNMF} | R Documentation |
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
Author(s)
Nicolas Sauwen
Examples
# random data
X <- matrix(runif(10*20), 10,20)
# Create initial source matrix for 3 sources
W0 <- initializeSPA(X,3)
[Package hNMF version 1.0 Index]