Skip to contents

Sigmoid function

Usage

sigmoid(x)

Arguments

x

numeric vector

Value

Returns a numeric vector of the transformed values.

Examples

x <- seq(from=-3,to=3,length.out=100)
y <- sigmoid(x)
graphics::plot(x=x,y=y,type="l")
graphics::abline(v=0,lty=2)
graphics::abline(h=0.5,lty=2)