Home > Scripts > Models > doseresp.m

iFit/doseresp

PURPOSE ^

y = doseresp(p, x, [y]) : Dose-response curve with variable Hill slope

SYNOPSIS ^

function y=doseresp(varargin)

DESCRIPTION ^

 y = doseresp(p, x, [y]) : Dose-response curve with variable Hill slope

   iFunc/doseresp Dose-response curve with variable Hill slope (sigmoid)
     y  = p(4)+ p(1) ./ (1+10.^((p(2)-x).*p(3)));
   This is a sigmoid S-shaped curve, aka logistic.

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

 input:  p: Dose Response model parameters (double)
            p = [ Amplitude Center Slope BackGround ]
          or 'guess'
         x: axis (double)
         y: when values are given and p='guess', a guess of the parameters is performed (double)
 output: y: model value
 ex:     y=doseresp([1 0 1 1], -10:10); or plot(doseresp)

 Version: Aug. 22, 2017
 See also iData, iFunc/fits, iFunc/plot, sigmoid
 (c) E.Farhi, ILL. License: EUPL.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 22-Aug-2017 11:03:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1