apoc.math.sigmoid

Details

Syntax

apoc.math.sigmoid(value)

Description

Returns the sigmoid of the given value.

Arguments

Name

Type

Description

value

FLOAT

An angle in radians.

Returns

FLOAT

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;
Results
result

0.2689414213699951