Function spectraComparison