Home > Scripts > Models > sigmoid.m



y = sigmoid(p, x, [y]) : Sigmoidal


function y=sigmoid(varargin)


 y = sigmoid(p, x, [y]) : Sigmoidal

   iFunc/sigmoid Sigmoidal S-shaped
     y  = A0+(A1-A0)./(1+exp(-(x-x0)/w))
   This is a sigmoid S-shaped curve, aka logistic.

 sigmoid(threshold)      creates a model with specified threshold
 sigmoid([ parameters ]) creates a model with specified model parameters

 Ref: http://en.wikipedia.org/wiki/Sigmoid_function

 input:  p: Sigmoidal model parameters (double)
            p = [ Amplitude Center Width BackGround ]
          or action e.g. 'identify', 'guess', 'plot' (char)
         x: axis (double)
         y: when values are given, a guess of the parameters is performed (double)
 output: y: model value or information structure (guess, identify)
 ex:     y=sigmoid([1 0 1 1], -10:10); or plot(sigmoid);

 Version: Nov. 26, 2018
 See also iFunc, iFunc/fits, iFunc/plot, doseresp
 (c) E.Farhi, ILL. License: EUPL.


This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1