From fd0098411aba108dfd34c9a4e2ffcf08c97e000c Mon Sep 17 00:00:00 2001 From: Eukanj827 Date: Tue, 2 Aug 2022 14:54:35 +0800 Subject: [PATCH] Update __init__.py --- .../query/slow_sql/significance_detection/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/significance_detection/__init__.py b/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/significance_detection/__init__.py index 214efbab..14eaa242 100644 --- a/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/significance_detection/__init__.py +++ b/src/gausskernel/dbmind/tools/app/diagnosis/query/slow_sql/significance_detection/__init__.py @@ -11,6 +11,13 @@ # MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. # See the Mulan PSL v2 for more details. +#function name: detect +#description: if the method is "bool" type, then call the functions sum_detect、avg_detect、ks_detect to diagnose errors +#These functions are in the parent slow_sql/significance_detection +#arguments: data1(array), data2(array), method +#return value: bool type +#date: 2022/8/2 +#contact: 1865997821 def detect(data1, data2, method='bool', threshold=0.01, p_value=0.5): if method == 'bool':