Description Usage Arguments Value Author(s) Examples

View source: R/initializeSPA.R

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

1 | ```
initializeSPA(data, nSources)
``` |

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

`nSources` |
Number of sources to be obtained |

Matrix with initialized sources as its columns

Nicolas Sauwen

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)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.