Skip to content

doc: update analytics docs. #28754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 13, 2024
Prev Previous commit
Update index.md
  • Loading branch information
hjxilinx authored Nov 13, 2024
commit a95e5e83e3e68b87c7c463c246bfae988931f8bb
4 changes: 2 additions & 2 deletions docs/zh/06-advanced/06-TDgpt/05-anomaly-detection/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: 异常检测算法
description: 异常检测算法
---

import ad from '../pic/ad.png';
import ad from '../pic/anomaly-detection.png';

时序数据异常检测,在TDengine 查询处理中以异常窗口的形式服务。因此,可以将异常检测获得的窗口视为一种特殊的**事件窗口**,区别在于异常窗口的触发条件和结束条件不是用户指定,而是检测算法自动识别。因此,可以应用在事件窗口上的函数均可应用在异常窗口中。由于异常检测结果是一个时间窗口,因此调用异常检测的方式也与使用事件窗口的方式相同,在 `WHERE` 子句中使用 `ANOMALY_WINDOW` 关键词即可调用时序数据异常检测服务,同时窗口伪列(`_WSTART`, `_WEND`, `_WDURATION`)也能够像其他窗口函数一样使用。例如:

Expand All @@ -13,7 +13,7 @@ FROM foo
ANOMALY_WINDOW(i32, "algo=iqr");
```

如下图所示,Anode 将返回时序数据异常窗口 [10:51:30, 10:53:40]
如下图所示,Anode 将返回时序数据异常窗口 $[10:51:30, 10:53:40]$

<img src={ad} width="760" alt="异常检测" />

Expand Down