Maps a fractional position (0–1) to a Quartile.
Boundaries are inclusive of the max, exclusive of the min: (0, .25] → 1, (.25, .5] → 2, (.5, .75] → 3, (.75, 1] → 4.
(0, .25] → 1
(.25, .5] → 2
(.5, .75] → 3
(.75, 1] → 4
Position on a 0–1 scale (e.g. rank / count).
rank / count
The quartile 1–4.
1
4
quartileByFraction(0.1); // 1quartileByFraction(0.5); // 2quartileByFraction(0.9); // 4 Copy
quartileByFraction(0.1); // 1quartileByFraction(0.5); // 2quartileByFraction(0.9); // 4
Maps a fractional position (0–1) to a Quartile.
Boundaries are inclusive of the max, exclusive of the min:
(0, .25] → 1,(.25, .5] → 2,(.5, .75] → 3,(.75, 1] → 4.