inverse sigmoid formula