spectralAnalysis (version 3.12.0)

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 = "")

Arguments

spectra

matrix of spectra

method

name of the NMF method to be used.

Value

matrix, with wavelengths as its rows and time points as its columns

Details

put negative values to zero, transpose, an add small value zero row (wavelength with only zeros)