Computational Spectrometry