Skip to main content

Module fits

Module fits 

Source
Expand description

The least-squares fit’s 90% intervals held to the synthetic flights (M7.3b, ADR-257 §1, ADR-316).

Each flight’s log is fitted (crate::fit), told what a flyer knows: the design, its motor at its rated impulse and burn, the rail, the site and the day’s air, and the structure’s mass as weighed, weighed_factor off the truth. The drag scale, impulse scale, wind and mass are each compared with the flight’s truth by the same three counts as the readings’ (super::intervals::Test), with the same three probes.

The truth. On Set::A a parameter’s truth is what the flight drew. On Set::B, whose drag curve, wind and thrust are shaped otherwise, it is the fit to the noise-free flight (noise_free): the same bins of height and drift, as the sensor would have read them with no noise, with the sensors’ unknowns open as a log’s are. The mass’s truth is what the flight drew on both.

What a log can tell. A parameter counts as identified only when its median interval over the flights is at most half the width of the 90% interval of its stated range with no log: Identification. Pure noise in place of the log must leave every parameter not identified (noise_log).

Structs§

Check
One parameter’s check on one set.
Compared
A fit’s reading of one parameter against its truth.
FlightFit
One flight’s fit.
Flown
Flies a draw’s design for a fit: told the rail, site and air, its motor rated, its wind and scales as asked. The structure’s mass is weighed times the true one, times the asked factor.
Identification
Whether a parameter is identified on a set: ADR-257 §1’s rule.

Enums§

Asked
A parameter asked of the fit.
Method
How a fit states a parameter’s 90% interval.

Constants§

ASKED
The parameters asked of the fit, in the report’s order.
POSTERIOR_DRAWS
And the draws read.
POSTERIOR_PILOT
The pilot’s draws the Bayesian option makes of a flight’s posterior, which widen its proposal where the posterior reaches further (crate::posterior::sample_in_two), and the draws read after them; each draw flies twice, once for the middle of the unknowns other than the wind and once for its weight. By estimate a few hundred keep 100 effective draws (crate::posterior::MIN_EFFECTIVE_DRAWS) on a posterior near its peak’s Gaussian. A judgment; the report counts the flights where they fell short.
RESIDUAL_SPLIT_M
The residual that splits Check::by_residual, m: past it a flight’s errors run larger than its standard errors say, and the shares, one pair for both sides, cover it less.
WEIGHED_WITHIN
How far a flight’s weighed mass lies from its structure’s, a share of it, either way: a kitchen scale’s and a loaded airframe’s error, the maintainer’s judgment; drawn uniform.

Functions§

check
asked’s check over fits, of the least-squares fit’s intervals.
check_by
asked’s check over fits, of method’s intervals.
fit_log
A log’s fit, log being the flight’s own or one in place of it, against the flight’s truth. A flight of another model whose log said nothing has none: it isn’t counted.
fit_noise_bins
A flight’s fit with bins of pure noise handed to it past the reader, as if the reader had found a flight of 20 s in them: heights of size_m either way, and a track of track_m in each direction where that’s a size.
fitted
The shares of asked, fitted on the fits of fits whose logs hold a horizontal track or don’t, by drift: its share’s 5% and 95% points; None for fewer than 20, or one that isn’t a number.
interval_of
asked’s 90% interval on fit by method; None where it can’t be stated. A log that said nothing states the stated range’s own by either: what was stated of it is all there is.
noise_free
The parameters’ truth on a flight of another model: the fit to the noise-free flight (ADR-257 §1). Where the log said anything it is the same fit as answer, on the same bins at the same noise with the sensors’ unknowns open, so that the two differ by the noise alone. The structure’s mass is held as flown. Where the log said nothing, the flight’s height and drift known exactly.
noise_free_observations
The bins of observed that its fit read (read, Fit::read) as the noise-free flight fills them, on the flight’s own clock: what the log’s sensors would have read with no noise, no gain, no drift and no port, in the same bins, so that the fit to them differs from the log’s by the noise alone.
noise_log
A log of pure noise in place of log: the same clock, each height a uniform draw of size_m about nothing, and no other channel.
sampling
How flight index of set draws its posterior: POSTERIOR_PILOT and POSTERIOR_DRAWS, on a seed of its own.
shares
The shares in force on a log that holds a horizontal track, or doesn’t, by drift, fitted on Set::Calibration: cargo xtask fit --calibrate prints them. A track speaks to the wind, so its errors are small and of another kind: the two are told apart, as the log itself says which it is.
stated
What the fit is told of each parameter: normal, so that with no log its 90% interval is its stated range’s. The drag and impulse scales are centered on their rated 1; the burn time’s range is the draw’s. These are the flights’ stated ranges, so they mean something on these flights alone; a caller on a real flight states its own.
stated_for
What’s stated of a flight read as observed. A log of height alone can’t tell the wind, and a wind of either sign lowers a flight’s top, so a fit in no wind would put that loss in the drag and impulse: by 0.7% of the impulse in a wind of 6 to 9 m/s, on the first 240 flights of set A, and by nothing under 3 m/s. It flies instead in a wind of the stated range’s RMS speed, toward the east, which leaves the mean of that loss out of them; the wind’s way, which a tilted rail would tell, is left to the wind’s own stated range.
track_flights
The first count flights of set whose logger holds a horizontal track and a barometer, whose fits are what the wind is counted on. A set’s draw at any index is fixed, so these run on past its count without moving its flights.
weighed_factor
The factor between flight index’s weighed structure and its true one, from a stream of its own, so that no flight’s draw moves.
wind_component_point
The 95% point of a wind component drawn as super::draw draws it, m/s: x with P(v sin θ ≤ x) = 0.95 for v uniform on 0..V and θ uniform on a turn, found by bisection on a midpoint sum over the direction.