lsst.scarlet.lite gee10cc3b42+585e252eca
|
Public Member Functions | |
__init__ (self, tuple bands, Box bbox, Parameter|np.ndarray spectrum, Parameter|np.ndarray morph_params, Callable morph_func, Callable morph_grad, Callable morph_prox, Callable|np.ndarray morph_step, Callable|None prox_spectrum=None, float floor=1e-20) | |
float | semi_major (self) |
float | semi_minor (self) |
float | theta (self) |
np.ndarray | ellipse_params (self) |
np.ndarray | radial_params (self) |
EllipseFrame | frame (self) |
Callable | morph_prox (self) |
Callable | morph_grad (self) |
update (self, int it, np.ndarray input_grad) | |
![]() | |
tuple[float, float] | peak (self) |
float | y0 (self) |
float | x0 (self) |
np.ndarray | spectrum (self) |
np.ndarray | morph (self, CartesianFrame|None frame=None) |
Callable | prox_morph (self) |
Callable | grad_morph (self) |
Callable | morph_step (self) |
Image | get_model (self, CartesianFrame|None frame=None) |
np.ndarray | prox_spectrum (self, np.ndarray spectrum) |
np.ndarray | grad_spectrum (self, np.ndarray input_grad, np.ndarray spectrum, np.ndarray morph) |
bool | resize (self, Box model_box) |
None | parameterize (self, Callable parameterization) |
![]() | |
Box | bbox (self) |
tuple | bands (self) |
Public Attributes | |
ellipse_params | |
![]() | |
floor | |
y0 | |
Protected Attributes | |
_bbox | |
![]() | |
_spectrum | |
_params | |
_func | |
_morph_grad | |
_morph_prox | |
_morph_step | |
_bbox | |
_prox_spectrum | |
![]() | |
_bands | |
_bbox | |
Additional Inherited Members | |
![]() | |
np.ndarray | _get_morph (self, CartesianFrame|None frame=None) |
A radial density/surface brightness profile with elliptical symmetry Parameters ---------- bands: The bands used in the model. bbox: The bounding box that holds this component model. spectrum: The spectrum of the component. morph_params: The parameters passed to `morph_func` to generate the morphology in image space. morph_func: The function to generate the morphology based on `morphParams`. morph_grad: The function to calculate the gradient of the likelihood wrt the morphological parameters. morph_prox: The proximal operator for the morphology parameters. prox_spectrum: Proximal operator for the spectrum. If `prox_spectrum` is `None` then the default proximal operator `self.prox_spectrum` is used. floor: The minimum value of the spectrum, used to prevent divergences in the gradients.
lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.__init__ | ( | self, | |
tuple | bands, | ||
Box | bbox, | ||
Parameter | np.ndarray | spectrum, | ||
Parameter | np.ndarray | morph_params, | ||
Callable | morph_func, | ||
Callable | morph_grad, | ||
Callable | morph_prox, | ||
Callable | np.ndarray | morph_step, | ||
Callable | None | prox_spectrum = None, | ||
float | floor = 1e-20 ) |
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
np.ndarray lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.ellipse_params | ( | self | ) |
The parameters used to generate the scaled radius
EllipseFrame lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.frame | ( | self | ) |
The `EllipseFrame` that parameterizes the model
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
Callable lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.morph_grad | ( | self | ) |
The function that calculates the gradient of the morphological model
Callable lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.morph_prox | ( | self | ) |
The function used to constrain the morphological model
np.ndarray lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.radial_params | ( | self | ) |
The parameters used to model the radial function
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.semi_major | ( | self | ) |
The length of the semi-major axis of the model
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.semi_minor | ( | self | ) |
The length of the semi-minor axis of the model
float lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.theta | ( | self | ) |
The counter-clockwise rotation angle of the model from the x-axis.
lsst.scarlet.lite.models.parametric.EllipticalParametricComponent.update | ( | self, | |
int | it, | ||
np.ndarray | input_grad ) |
Update the component Parameters ---------- it: The current iteration of the optimizer. input_grad: Gradient of the likelihood wrt the component model
Reimplemented from lsst.scarlet.lite.models.parametric.ParametricComponent.