All mass spectral library search procedures can be broadly described as methods to sort library mass spectra according to similarity with a query mass spectrum. Compounds associated with library mass spectra most similar to the query spectrum are returned as an ordered hitlist (or hit list). The results of the library search, consequently, are dependent on the content in the mass spectral library and how spectral similarity is computed.