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
|
}
|
}
|
}
|