Skip to contents

sigmoid transformation

Usage

sigmoid(x)

Arguments

x

A numeric vector or matrix on which sigmoid transformation is going to be applied.

Value

A numeric vector or matrix after sigmoid transformation.

Examples

sigmoid(matrix(1:4, nrow = 2))
#>           [,1]      [,2]
#> [1,] 0.7310586 0.9525741
#> [2,] 0.8807971 0.9820138