fix: lr_ratio 하한 1.0 제한 (500ml 팬텀에서 100ml로 과소평가 수정)
원인: CH4/CH5 lateral이 center 대비 짧아서 lr_ratio=0.32 계산 → S = π/4 × D² × 0.32 → 용적 68% 과소평가 수정: computeLrRatio() 반환값에 .coerceAtLeast(1.0) 추가 원형(1.0)보다 좁은 방광 단면은 물리적으로 불가능하므로 하한 제한 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -197,7 +197,10 @@ fun computeLrRatio(
|
|||||||
// Shrinkage toward prior
|
// Shrinkage toward prior
|
||||||
val avgRatio = latResults.map { it.ratio }.average()
|
val avgRatio = latResults.map { it.ratio }.average()
|
||||||
val confidence = ((1.0 - avgRatio) / 0.10).coerceIn(0.0, 1.0)
|
val confidence = ((1.0 - avgRatio) / 0.10).coerceIn(0.0, 1.0)
|
||||||
return hw.lrPrior + (lrRaw - hw.lrPrior) * confidence
|
val result = hw.lrPrior + (lrRaw - hw.lrPrior) * confidence
|
||||||
|
|
||||||
|
// 하한 1.0: 원형보다 좁은 단면은 물리적으로 불가
|
||||||
|
return result.coerceAtLeast(1.0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Result ──
|
// ── Result ──
|
||||||
|
|||||||
Reference in New Issue
Block a user