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 <noreply@anthropic.com>
This commit is contained in:
parent
1491bed18d
commit
981b941e49
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@ namespace Lodur
|
|||
/// <summary>The nerve's tunables: threshold, sensitisation under sustained stimulus, conduction delay, and a per-character gain.</summary>
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue