Browse Source

更新 'et_cache/filterFor.go'

dev
lucas2 5 months ago
parent
commit
034ca04678
  1. 3
      et_cache/filterFor.go

3
et_cache/filterFor.go

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

Loading…
Cancel
Save