Skip to main content

Module smoothed

Module smoothed 

Source
Expand description

The smoother held to the synthetic flights’ truth (M7.2d): each flight’s own log smoothed, its height and vertical speed compared with the truth’s at four moments, and the share of flights whose truth falls outside the smoother’s 90% interval on each side counted.

The moments, on the truth’s clock: burnout, the top vertical speed, apogee, and one moment drawn per flight, uniformly between liftoff and landing, on a stream of its own (moment_drawn). Each flight gives one comparison a moment, so the flights’ comparisons are independent. The truth is the center of mass’s height above where it stood at launch and its vertical speed (truth’s module).

Holding (ADR-300): a 90% interval misses about 5% of the time on each side. For each state and moment, each side’s misses are counted over a set’s smoothed flights, and the smoother holds there when that count’s two-sided 99.9% Clopper–Pearson interval reaches down to 5%: the flights don’t show it misses more often than it says. An interval wider than it needs to be holds; one that misses too often doesn’t.

Structs§

Cell
One state at one moment over a set’s flights.
Checked
One flight’s check.
Compared
One comparison: the smoothed value less the truth, and the smoother’s standard error.
HealthTally
A set’s health cards, summed.
SensorTally
One sensor’s health over a set’s smoothed flights.
SetCheck
A set’s check.

Enums§

Moment
The moments the smoother is checked at.
StateName
The smoothed states.

Constants§

BAND_CONFIDENCE
The confidence of the band on a miss share.
MISS_SHARE
The miss share each side of a 90% interval allows.

Functions§

check
Checks one flight’s smoothed log against its truth.
check_log
Checks a log of flight, its own or one written from it, against the flight’s truth.
clopper_pearson_lower
The lower edge of the two-sided Clopper–Pearson interval on a binomial share, at confidence: the p at which P(X ≥ x) = (1 − confidence)/2, by bisection; 0 when x is 0 (C. J. Clopper and E. S. Pearson, Biometrika 26(4), 404–413, 1934). NaN, which no cell holds on, when x exceeds n or confidence isn’t strictly between 0 and 1.
clopper_pearson_upper
The upper edge of the two-sided Clopper–Pearson interval on a binomial share at confidence, 1 − the lower edge of the share of the other outcome; 1 when x is n. NaN where clopper_pearson_lower is.
launch_started
The flight’s own log as a logger that writes only from launch would have written it (#982): every sample of every sensor before the truth’s liftoff is gone, the clock and the logger’s zero as they were. A track of pressures has no zero without its pad and is withheld, as a real one is.
moment_drawn
The moment drawn for flight index of set, s on the truth’s clock, uniformly between liftoff_s and landing_s, on a stream keyed by the set’s seed, the index and the smoother’s own key, so no other draw moves.
tally
A set’s check from its flights’ checks.