sigmoid.m 107 B

12345
  1. function [prob]=sigmoid(x,sigma,lapse)
  2. prob=lapse+((1-2*lapse)./(1+exp(-x./sigma)));
  3. end