benilla-re systems structs docs

s_realmLoadMean

global · glue

Address
0xb41fb0 · 4 bytes, up to 0xb41fb3
Type
float
Meaning
Holds the mean realm population, 1.0 for one realm or none; written by 0x46e510
Confidence
verified, proof one
Finding
glue/realms#population-statistics

Finding: Population statistics in glue: the realm list

Over the holder's n realms in order (every category, sentinels as replaced), population p:

  • s = 0, then s = f32(s + p) per realm, the add at 53 bits;
  • m = f32(s / n);
  • a = 0, then a = f32((p − m)² + a) per realm, from the stored m, all at 53 bits;
  • d = f32(sqrt(a / (n − 1)) · 0.6f), 0.6f being 0x3f19999a (0.60000002384), at 53 bits.

m goes to 0xb41fb0 and d to 0xb41fb4. With n ≤ 1, m = 1.0 and d = 0.0. A NaN population makes both NaN, and the band then reads 0 for every realm without a sentinel flag.

The derivation is in the doc.