nonNegativePreprocessing: condition datamatrix to input in and condition properly for NMF
Description
condition datamatrix to input in and condition properly for NMF
Usage
nonNegativePreprocessing(spectra, method = "")
Value
matrix, with wavelengths as its rows and time points as its columns
Arguments
- spectra
matrix of spectra
- method
name of the NMF method to be used.
Details
put negative values to zero, transpose, an add small value zero row (wavelength with only zeros)