pub struct Comparison {
pub signals: Vec<SignalInfo>,
pub on: Vec<Vec<f64>>,
pub off: Vec<Vec<f64>>,
}Expand description
The same cycle run twice, once with an effect on and once with it off (compare_effect), for overlaying the two.
Fields§
§signals: Vec<SignalInfo>§on: Vec<Vec<f64>>Every signal once per millisecond over the measured pass, the time counted from its start: with the effect on, and with it off.
off: Vec<Vec<f64>>Implementations§
Source§impl Comparison
impl Comparison
Sourcepub fn difference(&self, signal: usize) -> (f64, f64)
pub fn difference(&self, signal: usize) -> (f64, f64)
Peak and RMS of (on - off) of one signal over the rows both runs have. Where one pass is longer (an effect that changes the timing, such as corner blending), the rest of it is not compared.
Trait Implementations§
Source§impl Clone for Comparison
impl Clone for Comparison
Source§fn clone(&self) -> Comparison
fn clone(&self) -> Comparison
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 moreAuto Trait Implementations§
impl Freeze for Comparison
impl RefUnwindSafe for Comparison
impl Send for Comparison
impl Sync for Comparison
impl Unpin for Comparison
impl UnsafeUnpin for Comparison
impl UnwindSafe for Comparison
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