pub struct DriftDetector { /* private fields */ }Expand description
Drift detector using π transforms
Implementations§
Source§impl DriftDetector
impl DriftDetector
Sourcepub fn new(lane: PrecisionLane) -> Self
pub fn new(lane: PrecisionLane) -> Self
Create a new drift detector for a precision lane
Sourcepub fn check(
&mut self,
original: &[f32],
quantized: &[f32],
) -> QuantizationHonesty
pub fn check( &mut self, original: &[f32], quantized: &[f32], ) -> QuantizationHonesty
Check quantization honesty between original and quantized values
Sourcepub fn report(&self) -> DriftReport
pub fn report(&self) -> DriftReport
Get drift report
Sourcepub fn pi_checksum(&self, signal: &[f32]) -> f32
pub fn pi_checksum(&self, signal: &[f32]) -> f32
Run π checksum on a signal (deterministic honesty test)
Sourcepub fn verify_checksum(&self, original: &[f32], quantized: &[f32]) -> bool
pub fn verify_checksum(&self, original: &[f32], quantized: &[f32]) -> bool
Verify π checksum after quantization
Trait Implementations§
Source§impl Clone for DriftDetector
impl Clone for DriftDetector
Source§fn clone(&self) -> DriftDetector
fn clone(&self) -> DriftDetector
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 moreAuto Trait Implementations§
impl Freeze for DriftDetector
impl RefUnwindSafe for DriftDetector
impl Send for DriftDetector
impl Sync for DriftDetector
impl Unpin for DriftDetector
impl UnwindSafe for DriftDetector
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