Fermi-dirac function for more accurate frequency selection by spectrum amplitude