Description Usage Arguments Details Value References
Use the Orthogonal Matching Pursuit to estimate sparse coefficients for a linear combination of reference spectra to represent one or multiple target spectra.
1 2 3 4 5 6 7 8 |
targets |
a hyperSpec object. |
references |
a hyperSpec object containing the spectra to be combined in in a linear manner. |
tol |
The tolerance value to terminate the algorithm, see
|
references_ids |
either a single string or numeric specifying the column with names for the references in the object 'references', or a character vector with a name per reference spectrum. |
parallel |
logical; If this is |
ncores |
number of logical cores to use for parallel processing. Be aware that more is not necessarily better, as starting new processes adds overhead which potentially is bigger than the time savings from parallel processing. |
This is a wrapper around ompr
. The function is
run with method = "SSE"
.
a list containing the following members:
coefficient matrix
the references object as supplied
the return value of the multivariate call to 'stats::lm()' or a list of return values of the outputs of 'nnls::nnls()' for each target spectrum.
Pati, Y. C., R. Rezaiifar, Y. C. Pati R. Rezaiifar, and P. S. Krishnaprasad. “Orthogonal Matching Pursuit: Recursive Function Approximation with Applications to Wavelet Decomposition.” In Proceedings of the 27 Th Annual Asilomar Conference on Signals, Systems, and Computers, 40–44, 1993.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.