ostk.astrodynamics.utilities.compute_residuals

compute_residuals(candidate_states: list[~ostk.astrodynamics.trajectory.State], reference_states: list[~ostk.astrodynamics.trajectory.State], local_orbital_frame_factory_or_frame: ~ostk.astrodynamics.trajectory.LocalOrbitalFrameFactory | ~ostk.physics.coordinate.Frame = -- Frame ------------------------------------------------------------------------------------------- Name: GCRF Quasi-inertial: true Parent frame: None ---------------------------------------------------------------------------------------------------- ) list[Residual]

Compute position and velocity residuals by comparing candidate states against reference states.

Parameters:
  • candidate_states (list[State]) -- Candidate list of States.

  • reference_states (list[State]) -- List of reference States to compare against.

  • local_orbital_frame_factory_or_frame (LocalOrbitalFrameFactory | Frame, optional) -- The local orbital frame factory to use. Defaults to Frame.GCRF().

Returns:

List of Residuals.

Return type:

list[Residual]