spm_phi_dot.m 468 B

1234567891011121314
  1. function [y] = spm_phi_dot(x)
  2. % returns the derivative of the logistic function
  3. % FORMAT [y] = spm_phi_dot(x)
  4. % see spm_phi and spm_inv_phi
  5. %___________________________________________________________________________
  6. % Copyright (C) 2008 Wellcome Trust Centre for Neuroimaging
  7. % Karl Friston
  8. % $Id: spm_phi_dot.m 1143 2008-02-07 19:33:33Z spm $
  9. % apply
  10. %--------------------------------------------------------------------------
  11. u = exp(-x);
  12. y = 1./(1+u).^2.*u;