Learn R Programming

sparselink (version 1.0.0)

sigmoid: Sigmoid function

Description

Sigmoid function

Usage

sigmoid(x)

Value

Returns a numeric vector of the transformed values.

Arguments

x

numeric vector

Examples

Run this code
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)

Run the code above in your browser using DataLab