gauss_2d_func
- erwans3.utils.gauss_2d_func(amp: Union[float, Quantity], x0: Union[float, Quantity], y0: Union[float, Quantity], sigx: Union[float, Quantity], sigy: Union[float, Quantity], bkg: Optional[Union[float, Quantity]] = None, norm: bool = False) Callable[[Union[float, ndarray, Quantity]], Union[float, ndarray, Quantity]]
Create a 2D Gaussian function.
- Parameters:
x0 (
floatorQuantity) – X-coordinate of the center of the Gaussian along the x-axis.y0 (
floatorQuantity) – Y-coordinate of the center of the Gaussian along the y-axis.sigx (
floatorQuantity) – Standard deviation of the Gaussian along the x-axis.sigy (
floatorQuantity) – Standard deviation of the Gaussian along the y-axis.bkg (
floatorQuantityorNone, optional) – Background value to add to the Gaussian. Default is None.norm (
bool, optional) – If True, normalize the Gaussian. Default is False.
- Returns:
A callable function that computes the value of the 2D Gaussian function at given positions (x, y).
- Return type: