Abstract: In one embodiment, the disclosure relates to a method for conducting a spectral library search to identify an unknown compound by acquiring one or more spectra of the compound; representing each spectrum as a target vector; providing an n-dimensional space having a plurality of partitioned spaces, at least one of the partitioned spaces containing at least one known vector representing a known material; mapping each target vector in one of the plurality of the partitioned spaces to form a mapped partitioned space; identifying one or more known vectors within the mapped partitioned space which approximate the target vector; and identifying the unknown compound by comparing the target vector to the known vectors within the mapped partitioned space which closely approximate the target vector.