apoc.math.sigmoid

详细信息

语法

apoc.math.sigmoid(value)

描述

返回给定值的 Sigmoid 函数值。

参数

名称

类型

描述

FLOAT

以弧度为单位的角度。

返回

FLOAT

用法示例

apoc.math.sigmoid() 和 Cypher 的 exp() 函数均可用于返回一个值的 Sigmoid 函数值。

apoc.math.sigmoid
RETURN apoc.math.sigmoid(1) AS result;
Cypher 的 exp() 函数
RETURN 1 / (1 + exp(-1)) AS result;
结果
结果

0.7310585786300049