2021-02-02 12:00:41 +00:00
|
|
|
---
|
2022-08-26 19:07:59 +00:00
|
|
|
slug: /zh/sql-reference/aggregate-functions/reference/skewpop
|
2022-04-10 23:08:18 +00:00
|
|
|
sidebar_position: 150
|
2021-02-02 12:00:41 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# skewPop {#skewpop}
|
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
计算给定序列的 [偏度] (https://en.wikipedia.org/wiki/Skewness)。
|
|
|
|
|
|
|
|
**语法**
|
2021-02-02 12:00:41 +00:00
|
|
|
|
|
|
|
``` sql
|
|
|
|
skewPop(expr)
|
|
|
|
```
|
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
**参数**
|
2021-02-02 12:00:41 +00:00
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
`expr` — [表达式](../../../sql-reference/syntax.md#syntax-expressions) 返回一个数字。
|
2021-02-02 12:00:41 +00:00
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
**返回值**
|
2021-02-02 12:00:41 +00:00
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
给定分布的偏度。类型 — [Float64](../../../sql-reference/data-types/float.md)
|
2021-02-02 12:00:41 +00:00
|
|
|
|
2021-03-07 14:18:15 +00:00
|
|
|
**示例**
|
2021-02-02 12:00:41 +00:00
|
|
|
|
|
|
|
``` sql
|
2021-03-22 15:56:44 +00:00
|
|
|
SELECT skewPop(value) FROM series_with_value_column;
|
2021-02-02 12:00:41 +00:00
|
|
|
```
|