apoc.math.sigmoid
Syntax |
|
||
Description |
Returns the sigmoid of the given value. |
||
Arguments |
Name |
Type |
Description |
|
|
An angle in radians. |
|
Returns |
|
Usage Examples
Both apoc.math.sigmoid()
and Cypher’s exp()
function can be used to return the sigmoid of a value.
apoc.math.sigmoid
RETURN apoc.math.sigmoid(-1) AS result;
Cypher’s exp() function
RETURN 1 / (1 + exp(-1)) AS result;
result |
---|
0.2689414213699951 |