PSSM distance transformation