unmix: Unmix spectral data with least squares method

Description Usage Arguments Value

Description

unmix decomposes the spectral data to a matrix with concentrations and a matrix with spectra of pure components using set of pure variables.

Usage

1
unmix(D, Dr, by.spec = T)

Arguments

D

matrix with the spectral data

Dr

a matrix with concentration estimates (e.g. columns of D with pure variables)

by.spec

logical, should the algorithm works with spectra (rows) or with concentrations (columns)

Value

Returns a list with two matrices, 'conc' for concentrations and 'spec' for spectra as well as a vector with residual variance values


svkucheryavski/supure documentation built on May 30, 2019, 9:32 p.m.