tr.log {YRmisc} | R Documentation |
Sigmoid function
Description
Generate sigmoid curve series, which is a specific case of logistic function, with a control of top and bottom acceleration.
Usage
tr.log(x,top,a,b)
Arguments
x |
:a numeric vector |
top |
:a numeric value as vertical scaler |
a |
:a number to control top acceleration of the curve |
b |
:a number to control bottom acceleration of the curve |
Examples
sigc <- round(tr.log(seq(-3, 3, 0.1), 1, -3, 3), 3)
ts.plot(sigc)
[Package YRmisc version 0.1.6 Index]