HumanErrors constructor
- required StudentProfile profile,
- required Random rng,
- int repeats = 0,
- ErrorGains? gains,
- double windowMs = kDefaultRhythmToleranceMs,
Implementation
HumanErrors({
required this.profile,
required Random rng,
this.repeats = 0,
ErrorGains? gains,
this.windowMs = kDefaultRhythmToleranceMs,
}) : gains = gains ?? ErrorGains.of(profile),
_rng = rng {
dayFactor = 1 + (rng.nextDouble() * 2 - 1) * this.gains.dayShare;
}