feiyu02
2025-06-11 f7bdafb7cddd049bbb1bbf265fa006683b4ac693
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.flightfeather.uav.biz.dataanalysis.model
 
import com.flightfeather.uav.domain.entity.BaseRealTimeData
 
/**
 * 滑动平均值突变异常数据标签
 * @date 2025/5/13
 * @author feiyu02
 */
class ExceptionSlideAverageTag : ExceptionTag() {
 
    // 数据组均值的集合
    val avgListReverse = mutableListOf<Pair<Double, Boolean>>()
 
    fun refreshAfterCheckResult(historyDataList: List<BaseRealTimeData>, changeTrendGroup: Int) {
        if ((eIndex - sIndex + 1) > changeTrendGroup) {
            sIndex = eIndex + 1 - changeTrendGroup
            startData = historyDataList[sIndex]
            exceptionData.clear()
//            exceptionData.addAll(historyDataList.subList(sIndex, eIndex + 1))
            exceptionExisted = false
            exceptionCreated = false
        }
    }
}