LSST Applications g1653933729+34a971ddd9,g1a997c3884+34a971ddd9,g2160c40384+da0d0eec6b,g28da252d5a+1236b942f7,g2bbee38e9b+e5a1bc5b38,g2bc492864f+e5a1bc5b38,g2ca4be77d2+192fe503f0,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+e5a1bc5b38,g35bb328faa+34a971ddd9,g3a166c0a6a+e5a1bc5b38,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9f5be647b3,g41af890bb2+c3a10c924f,g5065538af8+e7237db731,g5a0bb5165c+eae055db26,g717e5f8c0f+b65b5c3ae4,g80478fca09+4ce5a07937,g82479be7b0+08790af60f,g858d7b2824+b65b5c3ae4,g9125e01d80+34a971ddd9,ga5288a1d22+5df949a35e,gae0086650b+34a971ddd9,gb58c049af0+ace264a4f2,gbd397ab92a+2141afb137,gc28159a63d+e5a1bc5b38,gc805d3fbd4+b65b5c3ae4,gcf0d15dbbd+97632ccc20,gd6b7c0dfd1+de826e8718,gda6a2b7d83+97632ccc20,gdaeeff99f8+7774323b41,ge2409df99d+e6cadbf968,ge33fd446bb+b65b5c3ae4,ge79ae78c31+e5a1bc5b38,gf0baf85859+890af219f9,gf5289d68f6+a27069ed62,w.2024.37
LSST Data Management Base Package
Loading...
Searching...
No Matches
gaussianparametricellipse.h
Go to the documentation of this file.
1#ifndef LSST_GAUSS2D_FIT_GAUSSIANPARAMETRICELLIPSE_H
2#define LSST_GAUSS2D_FIT_GAUSSIANPARAMETRICELLIPSE_H
3
4#include <memory>
5
7
8#include "parameters.h"
9#include "parametricellipse.h"
10
11namespace lsst::gauss2d::fit {
16public:
26 std::shared_ptr<RhoParameterD> rho = nullptr);
34 explicit GaussianParametricEllipse(double sigma_x = 0, double sigma_y = 0, double rho = 0);
35
36 ParamRefs& get_parameters(ParamRefs& params, ParamFilter* filter = nullptr) const override;
37 ParamCRefs& get_parameters_const(ParamCRefs& params, ParamFilter* filter = nullptr) const override;
38
39 double get_rho() const override;
40 double get_hwhm_x() const override;
41 double get_hwhm_y() const override;
42 double get_sigma_x() const override;
43 double get_sigma_y() const override;
44 double get_size_x() const override;
45 double get_size_y() const override;
46
47 std::array<double, 3> get_xyr() const override;
48 std::array<double, 3> get_hxyr() const override;
49
50 RhoParameterD& get_rho_param() const override;
55 SizeXParameterD& get_size_x_param() const override;
56 SizeYParameterD& get_size_y_param() const override;
57
65
66 void set(double sigma_x, double sigma_y, double rho) override;
67 void set_h(double hwhm_x, double hwhm_y, double rho) override;
68 void set_rho(double rho) override;
69 void set_hwhm_x(double hwhm_x) override;
70 void set_hwhm_y(double hwhm_y) override;
71 void set_sigma_x(double sigma_x) override;
72 void set_sigma_y(double sigma_y) override;
73 void set_size_x(double sigma_x) override;
74 void set_size_y(double sigma_y) override;
75 void set_hxyr(const std::array<double, 3>& hxyr) override;
76 void set_xyr(const std::array<double, 3>& xyr) override;
77
78 std::string repr(bool name_keywords = false,
79 std::string_view namespace_separator = Object::CC_NAMESPACE_SEPARATOR) const override;
80 std::string str() const override;
81
82private:
86};
87} // namespace lsst::gauss2d::fit
88
89#endif
Interface for an object storing Ellipse data.
Definition ellipse.h:132
static constexpr std::string_view CC_NAMESPACE_SEPARATOR
The C++ namespace separator.
Definition object.h:45
A Parameter-based implementation of lsst::gauss2d::EllipseData and ParametricEllipse.
std::string str() const override
Return a brief, human-readable string representation of this.
std::shared_ptr< SizeYParameterD > get_size_y_param_ptr() override
double get_hwhm_x() const override
Get the x-axis half-width at half-maximum.
void set_hwhm_y(double hwhm_y) override
Set the y-axis half-width at half-max (FWHM/2)
void set_hwhm_x(double hwhm_x) override
Set the x-axis half-width at half-max (FWHM/2)
void set_sigma_y(double sigma_y) override
Set the y-axis dispersion (sigma)
SigmaXParameterD & get_sigma_x_param() const
Explicit alias for get_size_x_param.
GaussianParametricEllipse(std::shared_ptr< SigmaXParameterD > sigma_x, std::shared_ptr< SigmaYParameterD > sigma_y, std::shared_ptr< RhoParameterD > rho=nullptr)
Construct a GaussianParametricEllipse from Parameter instances.
void set_rho(double rho) override
Set the correlation parameter (rho)
std::shared_ptr< SigmaYParameterD > get_sigma_y_param_ptr()
Explicit alias for get_sigma_y_param_ptr.
std::shared_ptr< SigmaXParameterD > get_sigma_x_param_ptr()
Explicit alias for get_sigma_x_param_ptr.
ParamRefs & get_parameters(ParamRefs &params, ParamFilter *filter=nullptr) const override
Add Parameter refs matching the filter to a vector, in order.
std::string repr(bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override
Return a full, callable string representation of this.
SigmaYParameterD & get_sigma_y_param() const
Explicit alias for get_size_y_param.
std::shared_ptr< SizeXParameterD > get_size_x_param_ptr() override
double get_size_y() const override
Get the size_y value.
void set_hxyr(const std::array< double, 3 > &hxyr) override
Set hwhm_x, hwhm_y, rho from an array.
std::array< double, 3 > get_hxyr() const override
Get hwhm_x, hwhm_y, rho.
std::shared_ptr< RhoParameterD > get_rho_param_ptr() override
void set_h(double hwhm_x, double hwhm_y, double rho) override
Set hwhm_x, hwhm_y, rho (half-width at half-max)
void set_sigma_x(double sigma_x) override
Set the x-axis dispersion (sigma)
double get_hwhm_y() const override
Get the y-axis half-width at half-maximum.
std::array< double, 3 > get_xyr() const override
Get sigma_x, sigma_y, rho.
void set_xyr(const std::array< double, 3 > &xyr) override
Set sigma_x, sigma_y, rho from an array.
ParamCRefs & get_parameters_const(ParamCRefs &params, ParamFilter *filter=nullptr) const override
Same as get_parameters(), but for const refs.
double get_size_x() const override
Get the size_x value.
daf::base::PropertySet * set
Definition fits.cc:931
Options for filtering Parameter instances.