eigenface application to xray spectra