Neo4j:在Cypher中使用日志功能

时间:2013-06-08 18:31:36

标签: neo4j cypher logarithm

我正在尝试在我的图表中在neo4j上实现tf-idf转换,在原始的平局上作为共同出现。为此,我需要记录节点数除以单个节点的程度。

有没有办法在cypher中使用take logarithms?

3 个答案:

答案 0 :(得分:2)

我刚刚提交了拉取请求: https://github.com/neo4j/neo4j/pull/869

答案 1 :(得分:1)

根据他们的备忘单,现在可以计算log(x)log10(x)

http://docs.neo4j.org/refcard/2.0/

发布2.0.0(第一个支持这个)已经有几个星期了。

答案 2 :(得分:0)

很抱歉,截至目前,对数学函数的支持相当有限:http://docs.neo4j.org/chunked/stable/query-functions-mathematical.html

但是,您可以在https://github.com/neo4j/neo4j/issues/new提交功能请求。