pub struct BioBinding {
pub rho_millibits: RhoMillibits,
pub hurst_millibits: Millibits,
pub recognition_gap_ms: u32,
}Expand description
Biometric binding for checkpoint.
bio-binding = {
1 => uint, ; rho_millibits (Spearman * 1000)
2 => uint, ; hurst_millibits (H * 1000)
3 => uint, ; recognition_gap_ms
}Fields§
§rho_millibits: RhoMillibits§hurst_millibits: Millibits§recognition_gap_ms: u32Implementations§
Source§impl BioBinding
impl BioBinding
Sourcepub fn new(rho: f64, hurst: f64, gap_ms: u32) -> Self
pub fn new(rho: f64, hurst: f64, gap_ms: u32) -> Self
Create a bio binding from floating-point correlation, Hurst, and gap values.
Sourcepub fn is_hurst_human_like(&self) -> bool
pub fn is_hurst_human_like(&self) -> bool
Human typing produces Hurst exponents in 0.55..0.85.
Sourcepub fn is_correlation_valid(&self) -> bool
pub fn is_correlation_valid(&self) -> bool
Return true if the Spearman rho correlation is within plausible bounds.
Trait Implementations§
Source§impl Clone for BioBinding
impl Clone for BioBinding
Source§fn clone(&self) -> BioBinding
fn clone(&self) -> BioBinding
Returns a duplicate of the value. Read more
1.0.0 · 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 BioBinding
impl Debug for BioBinding
Source§impl<'de> Deserialize<'de> for BioBinding
impl<'de> Deserialize<'de> for BioBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BioBinding
impl RefUnwindSafe for BioBinding
impl Send for BioBinding
impl Sync for BioBinding
impl Unpin for BioBinding
impl UnsafeUnpin for BioBinding
impl UnwindSafe for BioBinding
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