pub struct AdaptiveVelocityGateConfig {
pub reference_quantile: f64,
pub multiplier: f64,
pub margin_mps: f64,
pub min_threshold_mps: f64,
pub max_threshold_mps: Option<f64>,
pub min_reference_count: usize,
}Expand description
Adaptive refined-velocity writeback gate for OnlineSlamLocalBaConfig.
The gate builds a per-trigger reference envelope from the current
in-window velocity state, pose-delta / IMU-dt finite differences,
and IMU-predicted next-keyframe velocities, then rejects BA writeback
only when the refined max velocity exceeds quantile(reference) * multiplier + margin_mps, after lower/upper bounds are applied. This
keeps a raw fixed m/s threshold available as a safety ceiling while
making the main decision relative to the local motion scale.
Fields§
§reference_quantile: f64Robust reference quantile in [0, 1]. Values outside the range are
clamped at use-site so ad-hoc experiment configs cannot panic.
multiplier: f64Multiplier applied to the robust reference velocity.
margin_mps: f64Additive slack in m/s after the multiplier.
min_threshold_mps: f64Minimum threshold in m/s, after multiplier/slack.
max_threshold_mps: Option<f64>Optional hard upper bound in m/s. Use the legacy fixed velocity gate for an unconditional ceiling; this field keeps the adaptive threshold itself bounded for experiments.
min_reference_count: usizeMinimum number of finite reference velocities required before the
adaptive gate is active. If fewer samples are available, the gate
reports None and does not reject.
Trait Implementations§
Source§impl Clone for AdaptiveVelocityGateConfig
impl Clone for AdaptiveVelocityGateConfig
Source§fn clone(&self) -> AdaptiveVelocityGateConfig
fn clone(&self) -> AdaptiveVelocityGateConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AdaptiveVelocityGateConfig
impl Debug for AdaptiveVelocityGateConfig
Source§impl Default for AdaptiveVelocityGateConfig
impl Default for AdaptiveVelocityGateConfig
Source§fn default() -> AdaptiveVelocityGateConfig
fn default() -> AdaptiveVelocityGateConfig
impl StructuralPartialEq for AdaptiveVelocityGateConfig
Auto Trait Implementations§
impl Forget for AdaptiveVelocityGateConfig
impl Freeze for AdaptiveVelocityGateConfig
impl Move for AdaptiveVelocityGateConfig
impl RefUnwindSafe for AdaptiveVelocityGateConfig
impl Send for AdaptiveVelocityGateConfig
impl Sync for AdaptiveVelocityGateConfig
impl Unpin for AdaptiveVelocityGateConfig
impl UnsafeUnpin for AdaptiveVelocityGateConfig
impl UnwindSafe for AdaptiveVelocityGateConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.