Skip to main content

predict

Function predict 

Source
pub fn predict(
    log: &FlightLog,
    stated: impl FnOnce(&Observations) -> Stated,
    noise: Noise,
    forward: &mut dyn Forward,
) -> Result<Prediction, Unpredicted>
Expand description

Apogee predicted from log cut after burnout: the boost fitted by fit::fit, each parameter held to what stated gives for the boost’s observations, then flown on by forward to its apogee. The fit’s own converged says whether it settled.

§Errors

Unpredicted: why there is no prediction, where the log has no cut, the boost says nothing to fit, the fit keeps to what was stated, or the fitted flight doesn’t reach an apogee within APOGEE_HORIZON_S.