pub struct DriftEstimate {
pub x: f64,
pub y: f64,
pub error: f64,
pub confidence_floor: f64,
}Expand description
track.ts::driftCorrection’s output. confidence_floor is 0.96 * exp(-error / 20) (libm::exp, identical
on every engine); the TS caller takes Math.max(carriedInConfidence, confidenceFloor), a plain comparison
with no transcendental function left to vary between engines.
Fields§
§x: f64§y: f64§error: f64§confidence_floor: f64Auto Trait Implementations§
impl Freeze for DriftEstimate
impl RefUnwindSafe for DriftEstimate
impl Send for DriftEstimate
impl Sync for DriftEstimate
impl Unpin for DriftEstimate
impl UnsafeUnpin for DriftEstimate
impl UnwindSafe for DriftEstimate
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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