|
|
@ -3,6 +3,7 @@ package et_cache |
|
|
|
import ( |
|
|
|
"gitea.anxinyun.cn/container/common_calc" |
|
|
|
"gitea.anxinyun.cn/container/common_models" |
|
|
|
"log" |
|
|
|
"math" |
|
|
|
"strconv" |
|
|
|
) |
|
|
@ -49,6 +50,8 @@ func filterForMeanStandardDeviation(curr float64, window common_models.CacheWind |
|
|
|
more := curr - avg |
|
|
|
if more > nsgm { |
|
|
|
result = standardDeviation |
|
|
|
log.Printf("滑窗方差平均计算 result=%v,curr=%v,dataArray=%v", result, curr, dataArray) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|