pub struct Moffat;Expand description
Moffat peak: A / (((x − c)/σ)² + 1)^β.
Parameters (in order): [amplitude, center, sigma, beta]. amplitude is the peak
height at x == center; beta controls the wings (β→∞ Gaussian-like, small β heavier
tails). numpy oracle identical: A / (((x-c)/σ)**2 + 1)**β.
Trait Implementations§
Source§impl Model for Moffat
impl Model for Moffat
Source§fn jacobian(&self, x: &[f64], params: &[f64]) -> Vec<f64>
fn jacobian(&self, x: &[f64], params: &[f64]) -> Vec<f64>
Jacobian — one derivative per parameter, in the same order as
param_names(). Read moreSource§fn jacobian_into(&self, x: &[f64], params: &[f64], out: &mut [f64])
fn jacobian_into(&self, x: &[f64], params: &[f64], out: &mut [f64])
Fill a pre-allocated slice with Jacobian values (one entry per parameter). Read more
Source§fn eval_slice_into(&self, xs: &[f64], params: &[f64], out: &mut [f64])
fn eval_slice_into(&self, xs: &[f64], params: &[f64], out: &mut [f64])
Batch evaluation of a 1-D model: fill
out[i] = eval([xs[i]], params). Read moreAuto Trait Implementations§
impl Freeze for Moffat
impl RefUnwindSafe for Moffat
impl Send for Moffat
impl Sync for Moffat
impl Unpin for Moffat
impl UnsafeUnpin for Moffat
impl UnwindSafe for Moffat
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