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 →
计算数据集的样本方差。与 varSamp 不同,此函数采用数值稳定的算法。虽然运行较慢,但计算误差更低。
varSamp
varSampStable(x)
x
(U)Int*
Float*
Decimal*
Float64
DROP TABLE IF EXISTS test_data; CREATE TABLE test_data ( x Float64 ) ENGINE = Memory; INSERT INTO test_data VALUES (10.5), (12.3), (9.8), (11.2), (10.7); SELECT round(varSampStable(x),3) AS var_samp_stable FROM test_data;
┌─var_samp_stable─┐ │ 0.865 │ └─────────────────┘
此页面对您有帮助吗?