Skip to main content

Module census

Module census 

Source
Expand description

A set’s census: how many flights each design and logger flew, the ranges they span, and every draw that didn’t fly, with its reason. cargo xtask synthetic commits it.

Values are kept to three significant figures, the digits every platform shares: a flight’s numbers match across platforms to many digits, not to the bit (docs/physics/monte-carlo.md).

Structs§

NotFlown
A draw that didn’t fly.
Range
The least, middle and greatest of a quantity over a set’s flights.
Row
What a census keeps of one flight: a few numbers, not its log, so that a census of 1,000 flights holds 1,000 rows rather than 1,000 logs.
SetCensus
One set’s census.

Functions§

at_the_figures_of
x rounded at the decimal place of spread’s third significant figure: a mean given no finer than the spread of the values it is taken over. A mean near zero is a small number, so three figures of its own would show a few of its values moved by a platform’s arithmetic; three of the spread are the digits every platform shares. With spread zero or not finite, x to three significant figures of its own; a zero is never −0.
census
Flies the first count flights of set one after another and counts what came of them; cargo xtask synthetic flies whole sets on several threads and gives each flight’s row to from_rows in order, which comes to the same.
from_rows
The census of set from every flight’s row, rows[k] flight k’s.
row
Flight index of set as a census row, or why it didn’t fly.
three_figures
x to three significant figures, nearest.