pub struct SplitPearson7;Expand description
Split Pearson VII: a Pearson VII with a different width AND exponent on each side.
f(x) = A / [1 + ((x − c)/σ_i)²·(2^{1/m_i} − 1)]^{m_i}, with (σ_i, m_i) = (σ_L, m_L)
for x < c, else (σ_R, m_R).
Parameters (in order): [amplitude, center, sigma_l, sigma_r, m_l, m_r]. amplitude is
the peak height at x == center (continuous: both branches give A there). numpy oracle
identical via np.where(x < c, left, right).
Trait Implementations§
Source§impl Model for SplitPearson7
impl Model for SplitPearson7
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 SplitPearson7
impl RefUnwindSafe for SplitPearson7
impl Send for SplitPearson7
impl Sync for SplitPearson7
impl Unpin for SplitPearson7
impl UnsafeUnpin for SplitPearson7
impl UnwindSafe for SplitPearson7
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