sigmoid

0th

Percentile

The Logistic Function and Derivatives

Sigmoid \(1/(1 + \exp(-x))\), first and second derivative.

Keywords
math
Usage
sigmoid(x)
dsigmoid(x)
d2sigmoid(x)
Arguments
x

a numeric vector

Aliases
  • sigmoid
  • dsigmoid
  • d2sigmoid
Examples
# NOT RUN {
plot(sigmoid, -5, 5, ylim = c(-.2, 1))
plot(dsigmoid, -5, 5, add = TRUE, col = 2)
plot(d2sigmoid, -5, 5, add = TRUE, col = 3)
# }
Documentation reproduced from package e1071, version 1.7-3, License: GPL-2 | GPL-3

Community examples

Looks like there are no examples yet.