pub struct Gaussian2D;Expand description
Axis-aligned 2-D Gaussian peak.
Formula (no rotation):
f(x, y) = A · exp( −(x − cₓ)² / (2·σₓ²) − (y − c_y)² / (2·σ_y²) )Parameters (in order):
[amplitude, center_x, center_y, sigma_x, sigma_y]
amplitude— peak value at(center_x, center_y)(not area).center_x,center_y— peak location.sigma_x,sigma_y— standard deviations along each axis (FWHM ≈ 2.355·σ).
MVP note: a theta rotation parameter is intentionally omitted to keep
the first 2-D kernel minimal; rotated Gaussians are a follow-up unit.
Trait Implementations§
Source§impl Model for Gaussian2D
impl Model for Gaussian2D
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 Gaussian2D
impl RefUnwindSafe for Gaussian2D
impl Send for Gaussian2D
impl Sync for Gaussian2D
impl Unpin for Gaussian2D
impl UnsafeUnpin for Gaussian2D
impl UnwindSafe for Gaussian2D
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