Skip to content

utility sigmoid

GitHub Action edited this page Jul 9, 2026 · 1 revision
inline float sigmoid(float x)

Basic Info

Applies the Sigmoid function to an input for non-linearity.

Return Type

Returns a float

Parameters

Parameter Type Use Optional
x float Input ❌

Example

// Calling the sigmoid() function
float sigma_oid = utility::sigmoid(-0.471781487123);

Clone this wiki locally