fingerprint, to calculate spectrum