pub struct SelectedCandidate {
pub keyframe_index: usize,
pub x: i32,
pub y: i32,
pub support: u32,
pub unique: u32,
pub ambiguous: bool,
pub error: f64,
pub analysis_error: f64,
pub confidence: f64,
}Expand description
keyframes.ts::evaluateCandidates’s final pick, after evaluate_candidates_refine: the confidence formula, a
stable descending sort by score over the finite-scored candidates, the first strong candidate in that
order, and the rival/ambiguity check against every other candidate’s resolved position.
Fields§
§keyframe_index: usize§x: i32§y: i32§support: u32§unique: u32§ambiguous: bool§error: f64§analysis_error: f64§confidence: f64min(0.95, 0.45 + 0.5 * (1 - exp(-unique / 7))) * exp(-error / 20), using libm::exp — see
odometry.rs’s OdometryEstimate.confidence doc comment for why this no longer needs the host’s
Math.exp for bit-identity.
Auto Trait Implementations§
impl Freeze for SelectedCandidate
impl RefUnwindSafe for SelectedCandidate
impl Send for SelectedCandidate
impl Sync for SelectedCandidate
impl Unpin for SelectedCandidate
impl UnsafeUnpin for SelectedCandidate
impl UnwindSafe for SelectedCandidate
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