Alternative common basis for wavelet compression of NIR spectra and their application to food samples