From 36680087df02080833c319a7a70f083585fad295 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期五, 09 五月 2025 12:27:33 +0800 Subject: [PATCH] 1. 添加了动态污染溯源相关功能逻辑 --- src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt b/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt index 0a9e73c..e7994b7 100644 --- a/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt +++ b/src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt @@ -34,20 +34,8 @@ val b2 = r >= config.mutationRate if (b1) special = true res[f] = (b1 || b2) +// if (res[f] == true) println("p: $pValue --- n: $nValue --- r: $r") } -// repeat(config.factorCount) { i-> -// if (p?.getByFactorIndex(i) == null || n.getByFactorIndex(i) == null) { -// res.add(false) -// return@repeat -// } -// val pValue = p.getByFactorIndex(i)!! -// val nValue = n.getByFactorIndex(i)!! -// val r = abs((pValue - nValue) / pValue) -// val b1 = r >= (2 * config.mutationRate) -// val b2 = r >= config.mutationRate -// if (b1) special = true -// res.add(b1 || b2) -// } return res } @@ -56,6 +44,7 @@ val b1 = special && (eIndex - sIndex) >= (config.mutationNum / 2) val b2 = (eIndex - sIndex) >= config.mutationNum special = false +// println("sIndex: $sIndex --- eIndex: $eIndex --- special: $special") return b1 || b2 } } \ No newline at end of file -- Gitblit v1.9.3