Skip to contents

Calculates the sigmoid function of the input

Usage

sigmoid(float)

Arguments

float

A float number

Value

A float number which is the result of the sigmoid function

Examples

sigmoid(0)
#> [1] 0.5
sigmoid(2)
#> [1] 0.8807971