struct StrengthSolver {
eqns: EquationSystem,
num_bins: usize,
num_equations: usize,
total: f64,
}
Fields§
§eqns: EquationSystem
§num_bins: usize
§num_equations: usize
§total: f64
Implementations§
Source§impl StrengthSolver
impl StrengthSolver
pub fn new(num_bins: usize) -> Self
pub fn add_measurement(&mut self, block_mean: f64, noise_std: f64)
pub fn solve(&mut self) -> bool
pub fn fit_piecewise(&self, max_output_points: usize) -> NoiseStrengthLut
pub fn get_value(&self, x: f64) -> f64
pub fn clear(&mut self)
fn get_bin_index(&self, value: f64) -> f64
fn update_piecewise_linear_residual( &self, lut: &NoiseStrengthLut, residual: &mut [f64], start: usize, end: usize, )
fn get_center(&self, i: usize) -> f64
Trait Implementations§
Source§impl Add<&StrengthSolver> for StrengthSolver
impl Add<&StrengthSolver> for StrengthSolver
Source§type Output = StrengthSolver
type Output = StrengthSolver
The resulting type after applying the
+
operator.Source§impl AddAssign<&StrengthSolver> for StrengthSolver
impl AddAssign<&StrengthSolver> for StrengthSolver
Source§fn add_assign(&mut self, rhs: &StrengthSolver)
fn add_assign(&mut self, rhs: &StrengthSolver)
Performs the
+=
operation. Read moreSource§impl Clone for StrengthSolver
impl Clone for StrengthSolver
Source§fn clone(&self) -> StrengthSolver
fn clone(&self) -> StrengthSolver
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 StrengthSolver
impl RefUnwindSafe for StrengthSolver
impl Send for StrengthSolver
impl Sync for StrengthSolver
impl Unpin for StrengthSolver
impl UnwindSafe for StrengthSolver
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