stdDeviation property Null safety
final
Implementation
static final NormalOperation stdDeviation =
StackLiftingNormalOperation.floatOnly(
floatCalc: (Model m) {
final n = m.memory.registers[2].asDouble;
m.x = _stdDev(m.memory.registers, 5, 6, n);
// Don't set LastX - checked on 15C
m.pushStack();
m.x = _stdDev(m.memory.registers, 3, 4, n);
},
needsStackLiftIfEnabled: (m) =>
_statsLift(m) && m.memory.registers[2].asDouble != 1,
name: 's');