pub struct CorrelationProof {
pub rho: RhoMillibits,
pub threshold: i16,
}Expand description
Correlation proof from CDDL.
correlation-proof = {
1 => int16 .within -1000..1000, ; rho (Scaled: -1000..1000)
2 => 700, ; threshold (0.7 * 1000)
}Fields§
§rho: RhoMillibitsSpearman rho correlation coefficient (scaled x1000).
threshold: i16Threshold for acceptance (default 700 = 0.7).
Trait Implementations§
Source§impl Clone for CorrelationProof
impl Clone for CorrelationProof
Source§fn clone(&self) -> CorrelationProof
fn clone(&self) -> CorrelationProof
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 CorrelationProof
impl Debug for CorrelationProof
Source§impl Default for CorrelationProof
impl Default for CorrelationProof
Source§impl<'de> Deserialize<'de> for CorrelationProof
impl<'de> Deserialize<'de> for CorrelationProof
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 CorrelationProof
impl RefUnwindSafe for CorrelationProof
impl Send for CorrelationProof
impl Sync for CorrelationProof
impl Unpin for CorrelationProof
impl UnsafeUnpin for CorrelationProof
impl UnwindSafe for CorrelationProof
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