powered by
The successive projection algorithm, a useful method for initializing the NMF source matrix
initializeSPA(data, nSources)
Input data matrix. The columns correspond to the data points, each row represents one feature
Number of sources to be obtained
Matrix with initialized sources as its columns
# 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