Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ClickHouse launches Claude-powered Agents and House Mates partner program at Open House 2026 Read more →
计算秩相关系数。
rankCorr(x, y)
x
Float*
y
Float64
SELECT rankCorr(number, number) FROM numbers(100);
┌─rankCorr(number, number)─┐ │ 1 │ └──────────────────────────┘
SELECT roundBankers(rankCorr(exp(number), sin(number)), 3) FROM numbers(100);
┌─roundBankers(rankCorr(exp(number), sin(number)), 3)─┐ │ -0.037 │ └─────────────────────────────────────────────────────┘
此页面对您有帮助吗?