pub struct GaussianND { /* private fields */ }Expand description
Axis-aligned D-dimensional Gaussian peak (n_dims() == d).
f(x) = A · exp( −Σ_{i=0}^{D-1} (x_i − center_i)² / (2·σ_i²) )
Parameters (in order): [amplitude, center_0 … center_{D-1}, sigma_0 … sigma_{D-1}]
— length 1 + 2D. Indexed (not x/y/z) so the naming scales to arbitrary N.
Implementations§
Trait Implementations§
Source§impl Model for GaussianND
impl Model for GaussianND
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
Auto Trait Implementations§
impl Freeze for GaussianND
impl RefUnwindSafe for GaussianND
impl Send for GaussianND
impl Sync for GaussianND
impl Unpin for GaussianND
impl UnsafeUnpin for GaussianND
impl UnwindSafe for GaussianND
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