Skip to main content

MergeReport

Struct MergeReport 

Source
pub struct MergeReport {
    pub quarantined: Vec<MergeFlag>,
    pub single_source: Vec<MergeFlag>,
    pub position_outliers: Vec<MergeFlag>,
    pub agreement: Vec<AgreementMetric>,
}
Expand description

Audit trail for a merge.

Fields§

§quarantined: Vec<MergeFlag>

Cells where two or more sources disagreed beyond tolerance with no agreeing subset of min_agree - omitted from the merged product.

§single_source: Vec<MergeFlag>

Cells carried from a single source (no cross-check was possible).

§position_outliers: Vec<MergeFlag>

Cells accepted by consensus where one or more sources were rejected as position outliers.

§agreement: Vec<AgreementMetric>

Per-(epoch, satellite) agreement statistics for every accepted cell, in output (epoch, then satellite) order - one entry per cell written to the merged product. Quantifies how tightly the consensus sources clustered about the combined value (Gap: per-epoch quality metrics).

Implementations§

Source§

impl MergeReport

Source

pub fn single_source_fraction(&self) -> Option<f64>

Fraction of accepted cells that were carried from a single source, in 0.0..=1.0; None when no cells were accepted.

This is the blind-spot companion to the agreement-RMS accessors, which quantify dispersion only over multi-source cells. A product can show a tight (or None) agreement RMS yet be largely un-cross-checked: those gap-fill cells (also enumerated in MergeReport::single_source) had no second source to compare against. Read this alongside the RMS so a clean dispersion is not mistaken for a fully corroborated product.

Source

pub fn position_agreement_rms_m(&self) -> Option<f64>

Member-count-weighted pooled RMS of the per-cell position dispersion over every accepted cell with a multi-source consensus, meters. None when no cell had two or more position-consensus members.

The pool is exact: each cell contributes its summed squared member-to- combined distances (position_rms_m^2 * position_members), normalised by the total member count, so the result is the RMS of all member-to-combined distances across the whole product.

This covers only multi-source cells; single-source gap-fill cells are excluded (they have no dispersion). A small or None result therefore does not by itself mean the whole product was corroborated - check MergeReport::single_source_fraction for the un-cross-checked share.

Source

pub fn position_agreement_max_m(&self) -> Option<f64>

Largest single-cell position dispersion over all accepted cells, meters. None when there are no accepted cells.

Source

pub fn clock_agreement_rms_s(&self) -> Option<f64>

As Self::position_agreement_rms_m for the clock channel, seconds.

Source

pub fn clock_agreement_max_s(&self) -> Option<f64>

Largest single-cell clock dispersion over all accepted cells, seconds.

Source

pub fn per_epoch_agreement(&self) -> Vec<EpochAgreement>

Per-epoch aggregate agreement, in output-epoch order. Each entry pools the multi-source cells at that epoch (see EpochAgreement); epochs whose cells were all single-source are still listed with satellites == 0 and a zero position spread so the caller sees every output epoch.

Trait Implementations§

Source§

impl Clone for MergeReport

Source§

fn clone(&self) -> MergeReport

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 Debug for MergeReport

Source§

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

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

impl Default for MergeReport

Source§

fn default() -> MergeReport

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

impl PartialEq for MergeReport

Source§

fn eq(&self, other: &MergeReport) -> 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 MergeReport

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.