In accordance with an embodiment of the present invention, the hyper-spectral analysis method and system employs Local Discriminant Bases (LDB) which apply naturally to a family of labeled vectors that represents smoothly varying functions, for example spectra and sounds.