sig4_invB.m 181 B

1234567891011121314
  1. % y=sig4(beta,x)
  2. % y0=beta(1);
  3. % a=beta(2);
  4. % x0=beta(3);
  5. % b=beta(4);
  6. function y=sig4_invB(beta,x)
  7. y0=beta(1);
  8. a=beta(2);
  9. x0=beta(3);
  10. b=1./beta(4);
  11. y=y0+a./(1+ exp(-(x-x0)./b));