Skip to main content

predict_batch

Function predict_batch 

Source
pub fn predict_batch(
    source: &dyn ObservableEphemerisSource,
    requests: &[PredictRequest],
    options: PredictOptions,
) -> Vec<Result<PredictedObservables, ObservablesError>>
Expand description

Predict observables for many (satellite, receiver, epoch) requests, serially.

Element i of the result is exactly what predict returns for requests[i] (including its Err), evaluated with the shared options. This is the single-threaded reference that predict_batch_parallel is proven bit-identical against; it lets a caller predict a whole fleet/arc in one call instead of paying per-call dispatch overhead in a host-language loop.