sigmoid threshold seeking