ClickHouse/docs/zh/sql-reference/aggregate-functions/reference/kurtsamp.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
691 B
Markdown
Raw Normal View History

2021-02-02 12:00:41 +00:00
---
2022-08-26 19:07:59 +00:00
slug: /zh/sql-reference/aggregate-functions/reference/kurtsamp
2022-04-10 23:08:18 +00:00
sidebar_position: 154
2021-02-02 12:00:41 +00:00
---
# kurtSamp {#kurtsamp}
2021-02-06 15:38:03 +00:00
计算给定序列的 [峰度样本](https://en.wikipedia.org/wiki/Kurtosis)。
它表示随机变量峰度的无偏估计,如果传递的值形成其样本。
2021-02-02 12:00:41 +00:00
2021-02-06 15:38:03 +00:00
**语法**
2021-02-02 12:00:41 +00:00
``` sql
kurtSamp(expr)
```
2021-02-06 15:38:03 +00:00
**参数**
2021-02-02 12:00:41 +00:00
2021-02-06 15:38:03 +00:00
`expr` — 结果为数字的 [表达式](../../../sql-reference/syntax.md#syntax-expressions)。
2021-02-02 12:00:41 +00:00
2021-02-06 15:38:03 +00:00
**返回值**
2021-02-02 12:00:41 +00:00
2021-02-06 15:38:03 +00:00
给定序列的峰度。类型 — [Float64](../../../sql-reference/data-types/float.md)。 如果 `n <= 1` (`n` 是样本的大小),则该函数返回 `nan`
2021-02-02 12:00:41 +00:00
2021-02-06 15:38:03 +00:00
**示例**
2021-02-02 12:00:41 +00:00
``` sql
2021-03-22 15:56:44 +00:00
SELECT kurtSamp(value) FROM series_with_value_column;
2021-02-02 12:00:41 +00:00
```