From 9a9a27f185bc0cf9dc0001cfc6839e6d13dbccd9 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 08 五月 2025 17:38:30 +0800 Subject: [PATCH] 1. 添加了动态污染溯源相关功能逻辑 --- src/main/kotlin/com/flightfeather/uav/biz/dataanalysis/exceptiontype/ExceptionValueMutation.kt | 17 ++--------------- 1 files changed, 2 insertions(+), 15 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 fdaa83c..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,21 +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") +// 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 } @@ -57,7 +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") +// println("sIndex: $sIndex --- eIndex: $eIndex --- special: $special") return b1 || b2 } } \ No newline at end of file -- Gitblit v1.9.3