pub struct SnapResult {
pub dodecet: u16,
pub snap_a: i32,
pub snap_b: i32,
pub error: f64,
pub error_normalized: f64,
pub error_level: u8,
pub angle_level: u8,
pub chamber: u8,
pub parity: i8,
pub is_safe: bool,
}Expand description
Result of Eisenstein constraint snap
Fields§
§dodecet: u16The 12-bit dodecet encoding the full constraint state
snap_a: i32Nearest Eisenstein integer (a, b) where a + bω is the snap point
snap_b: i32§error: f64Snap error (distance from input to snap point)
error_normalized: f64Error normalized to covering radius [0, 1]
error_level: u8Error quantized to 16 levels (nibble 2)
angle_level: u8Azimuthal angle quantized to 16 levels (nibble 1)
chamber: u8Weyl chamber index 0-5
parity: i8Parity: +1 for even chambers, -1 for odd
is_safe: boolWhether the point is within the safe zone (error < ρ/2)
Implementations§
Source§impl SnapResult
impl SnapResult
Sourcepub fn parity_str(&self) -> &'static str
pub fn parity_str(&self) -> &'static str
Get parity as string
Sourcepub fn funnel_position(&self) -> f64
pub fn funnel_position(&self) -> f64
Deadband funnel position: √(error/ρ) 0.0 = on snap, 1.0 = at boundary Square-root because CDF = πr²/A → r = √(A·P/π)
Sourcepub fn precision_feeling(&self) -> f64
pub fn precision_feeling(&self) -> f64
Precision feeling Φ = 1/δ where δ is the deadband Higher Φ = more constrained
Trait Implementations§
Source§impl Clone for SnapResult
impl Clone for SnapResult
Source§fn clone(&self) -> SnapResult
fn clone(&self) -> SnapResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapResult
impl Debug for SnapResult
impl Copy for SnapResult
Auto Trait Implementations§
impl Freeze for SnapResult
impl RefUnwindSafe for SnapResult
impl Send for SnapResult
impl Sync for SnapResult
impl Unpin for SnapResult
impl UnsafeUnpin for SnapResult
impl UnwindSafe for SnapResult
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