pub struct ManualProfile {
pub percentages: Vec<f64>,
pub scale: f64,
}Expand description
Manual profile per driver: percentages (tap weights) + scale.
Invariant: percentages.len() == lag_k; usually sum == 1.0 and entries >= 0.
§Example
use wc_fir::ManualProfile;
let profile = ManualProfile {
percentages: vec![0.5, 0.35, 0.15],
scale: 0.9,
};Fields§
§percentages: Vec<f64>§scale: f64Trait Implementations§
Source§impl Clone for ManualProfile
impl Clone for ManualProfile
Source§fn clone(&self) -> ManualProfile
fn clone(&self) -> ManualProfile
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 ManualProfile
impl RefUnwindSafe for ManualProfile
impl Send for ManualProfile
impl Sync for ManualProfile
impl Unpin for ManualProfile
impl UnwindSafe for ManualProfile
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