Skip to main content

EstimationRecipe

Struct EstimationRecipe 

Source
pub struct EstimationRecipe {
    pub range: RangeRecipe,
    pub sagnac: SagnacRecipe,
    pub frame: FrameRecipe,
    pub normal: NormalRecipe,
    pub solver: SolverRecipe,
}
Expand description

The full operation-order recipe a strategy composes: one variant per stage. Default and the named constructors reproduce the CURRENT behavior of each existing strategy, so selecting a recipe never changes a reference golden.

Fields§

§range: RangeRecipe§sagnac: SagnacRecipe§frame: FrameRecipe§normal: NormalRecipe§solver: SolverRecipe

Implementations§

Source§

impl EstimationRecipe

Source

pub const fn spp() -> Self

The current SPP reference recipe (spp::solve, Skyfield-parity).

Source

pub const fn rtk() -> Self

The current RTK reference recipe (rtk / rtk_filter, RTKLIB-parity).

Source

pub const fn ppp() -> Self

The current PPP reference recipe (precise_positioning, oracle-parity).

Source

pub const fn spp_owned_deterministic() -> Self

The SPP recipe driving the owned deterministic trust-region solver: the SPP reference model with SolverRecipe::OwnedDeterministicTrf swapped in for the legacy nalgebra LU linear-solve stage. Every other stage is the SPP reference op-order, so only the factorization changes.

Source

pub const fn canonical_spp() -> Self

The canonical SPP recipe: the single consistent IERS-rigorous SPP measurement model. It diverges from Self::spp (the Skyfield-faithful reference) only where the physics says to:

  • range: RangeRecipe::CanonicalLightTimeClosedFormSagnac iterates the light-time loop to convergence (vs the reference’s fixed transmit-time truncation), with the closed-form Sagnac Z-rotation (never a first-order scalar Sagnac).
  • frame: FrameRecipe::CanonicalWgs84 solves ECEF->geodetic directly in meters on the WGS84 ellipsoid (vs the reference’s Skyfield AU-scaled three-iteration latitude loop).
  • solver: SolverRecipe::OwnedDeterministicTrf owns the trust-region subproblem factorization so canonical is deterministic run-to-run on a pinned build (its cross-platform bit guarantee is scoped to the factorization; the surrounding reductions ride nalgebra).

The Sagnac stage is the closed-form Z-rotation the SPP reference already uses (the rigorous form), and the normal stage is the SPP weighted-residual finite-difference assembly the trust-region solver consumes; neither needs a separate canonical variant for SPP.

Source

pub const fn canonical_rtk() -> Self

The canonical RTK recipe: the double-difference baseline under the numerically rigorous square-root-information solve. It keeps the RTK reference’s double-difference measurement physics (the provided-transmit range with the RTKLIB first-order Sagnac scalar, the geocentric-up elevation frame), because the canonical RTK divergence the physics calls for is in the linear algebra, not the observation model: the same SPD information system the reference assembles is solved by the owned deterministic Cholesky square-root factorization (NormalRecipe::CanonicalSquareRoot on SolverRecipe::OwnedDeterministicCholesky) instead of the reference’s general first-tie Gaussian elimination. The square-root solve needs no pivoting, exploits the symmetry of the SPD normal matrix, and is entirely owned scalar arithmetic (no nalgebra, no BLAS), so canonical RTK is well-conditioned and bit-reproducible across platforms.

Source

pub const fn canonical_ppp() -> Self

The canonical PPP recipe: the undifferenced ionosphere-free PPP arc under the numerically rigorous square-root-information solve. Like Self::canonical_rtk it keeps the PPP reference’s measurement physics (the rounded-microsecond fixed-iteration light-time with the rigorous closed-form Sagnac Z-rotation, and the geodetic NEU antenna frame), because the canonical PPP divergence the physics calls for is in the linear algebra, not the observation model: the same dense SPD weighted normal system AᵀWA x = AᵀWy the reference assembles from the undifferenced rows is solved by the owned deterministic Cholesky square-root factorization (NormalRecipe::CanonicalSquareRoot on SolverRecipe::OwnedDeterministicCholesky) instead of the reference’s dense last-tie Gaussian elimination (SolverRecipe::DenseGaussianLastTie). The square-root solve needs no pivoting, exploits the symmetry of the SPD normal matrix, and is entirely owned scalar arithmetic (no nalgebra, no BLAS), so it is well-conditioned and the solve itself is bit-portable. Determinism scope (calibrated, not overstated): unlike canonical RTK, the PPP measurement model that builds the rows evaluates troposphere mapping, antenna, and geodetic-frame transcendentals through the platform math library, so canonical PPP’s overall output is bit-reproducible run-to-run on a pinned build but is not claimed bit-portable across platforms; only the owned Cholesky solve carries the cross-platform guarantee.

Source

pub const fn for_canonical(technique: Technique) -> Option<Self>

The canonical recipe for a technique. Canonical SPP (P6 increment 1), canonical RTK (P6 increment 2), and canonical PPP (P6 increment 3) are all wired, so every technique has a canonical strategy. Returns Option to keep the resolver’s “not yet implemented” surface stable.

Source

pub const fn for_reference( technique: Technique, target: ReferenceTarget, ) -> Option<Self>

The reference recipe for an explicit (technique, target) pair, or None if the pair is not a supported reference strategy. This is the single source of truth for which targets each technique can run: only the wired reference oracles (Skyfield for SPP, RTKLIB for RTK, the PPP oracle for PPP) and the SPP owned deterministic solver are valid. Every other pair (a cross-technique oracle, or the unwired scipy host-LAPACK reference) is rejected so an impossible strategy can never silently run a mismatched recipe.

Trait Implementations§

Source§

impl Clone for EstimationRecipe

Source§

fn clone(&self) -> EstimationRecipe

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EstimationRecipe

Source§

impl Debug for EstimationRecipe

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EstimationRecipe

Source§

fn default() -> EstimationRecipe

Returns the “default value” for a type. Read more
Source§

impl Eq for EstimationRecipe

Source§

impl Hash for EstimationRecipe

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for EstimationRecipe

Source§

fn eq(&self, other: &EstimationRecipe) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for EstimationRecipe

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.