|| apoc.math.sigmoid - APOC 核心文档 - Neo4j 文档

apoc.math.sigmoid

详情

语法

apoc.math.sigmoid(value)

描述

返回给定值的 sigmoid 函数结果。

参数

名称

类型

描述

value

浮点数

以弧度表示的角度。

返回

浮点数

使用示例

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.2689414213699951

© . This site is unofficial and not affiliated with Neo4j, Inc.