From 981b941e495d612e806f8f30271d8e1d0378e6ac Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 20 Nov 2026 00:15:32 +0100 Subject: [PATCH] NerveParameters: NociceptorThreshold becomes Threshold The record is the one transduction for every channel from the sensory-load cut on, noxious or not. Co-Authored-By: Claude Sonnet 5.5 --- src/Lodur.Core/Perception.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lodur.Core/Perception.cs b/src/Lodur.Core/Perception.cs index fba72f1..c1e4f5a 100644 --- a/src/Lodur.Core/Perception.cs +++ b/src/Lodur.Core/Perception.cs @@ -29,7 +29,7 @@ namespace Lodur /// The nerve's tunables: threshold, sensitisation under sustained stimulus, conduction delay, and a per-character gain. public sealed record NerveParameters { - public double NociceptorThreshold { get; init; } = 0.1; + public double Threshold { get; init; } = 0.1; public double SensitisationGrowth { get; init; } = 0.04; public double SensitisationRecovery { get; init; } = 0.02; public double SensitisationCap { get; init; } = 2.0; @@ -99,7 +99,7 @@ namespace Lodur } // Nociceptor: threshold, then sensitisation, then conduction delay. - var above = Math.Max(0.0, stimulus - _p.NociceptorThreshold); + var above = Math.Max(0.0, stimulus - _p.Threshold); var sens = _sens[r] + _dt * (_p.SensitisationGrowth * above - _p.SensitisationRecovery * (_sens[r] - 1.0)); sens = Math.Min(Math.Max(sens, 1.0), _p.SensitisationCap); _sens[r] = sens;