|
LSST Applications 30.0.7,g0e76e35be5+e8e946ae08,g19811a7679+138f7293ba,g199a45376c+5e234f8357,g1fd858c14a+2f48dbc4c4,g262e1987ae+fb36cac54d,g29ae962dfc+d9108a0941,g2c21b0017a+4f59a27f16,g31e44d4a5c+b0138be388,g33ac35c1f1+28b9f72785,g35bb328faa+b0138be388,g40c9b15c53+823ad735c1,g47891489e3+bcc48a0b46,g53246c7159+b0138be388,g64539dfbff+e8e946ae08,g67b6fd64d1+bcc48a0b46,g74acd417e5+422380537a,g76965917b2+a5ca99c4d9,g786e29fd12+796b79145d,g7aefaa3e3d+dc0c200193,g86b635cae8+734fe384f0,g87389fa792+d8b5378923,g89139ef638+bcc48a0b46,g8bbb235e95+3f4f7f9447,g8ea07a8fe4+78a4c88802,g9290983e33+ffdc83c6f7,g92c671f44c+e8e946ae08,gaa753fd333+03f406da14,gbf99507273+b0138be388,gc49b57b85e+8df26ee1f0,gca7fc764a6+bcc48a0b46,gd7ef33dd92+bcc48a0b46,gdab6d2f7ff+422380537a,ge1c02a5578+b0138be388,ge410e46f29+bcc48a0b46,ge80df9fc40+e6db5413d1,geaed405ab2+1de65a85c6,gf5dcc679e7+35a0ce2edd,gf5f1c85443+e8e946ae08
LSST Data Management Base Package
|
An Ellipse with sigma_x, sigma_y, and rho values. More...
#include <ellipse.h>
Public Member Functions | |
| Ellipse (std::shared_ptr< EllipseData > data) | |
| Ellipse (double sigma_x=0, double sigma_y=0, double rho=0) | |
| Construct a new Ellipse object with default float values. | |
| Ellipse (const Covariance &covar) | |
| Ellipse (const EllipseMajor &ellipse) | |
| const EllipseData & | get_data () const |
| Return a const ref to this ellipse's data. | |
| double | get_rho () const override |
| Get rho. | |
| double | get_sigma_x () const override |
| Get sigma_x. | |
| double | get_sigma_y () const override |
| Get sigma_y. | |
| std::shared_ptr< Ellipse > | make_convolution (const Ellipse &ell) const |
| Return the convolution of this with another ellipse. | |
| std::unique_ptr< Ellipse > | make_convolution_uniq (const Ellipse &ell) const |
| Same as make_convolution(), but returning a unique_ptr. | |
| void | set_rho (double rho) override |
| Set the correlation parameter (rho) | |
| void | set_sigma_x (double sigma_x) override |
| Set the x-axis dispersion (sigma) | |
| void | set_sigma_y (double sigma_y) override |
| Set the y-axis dispersion (sigma) | |
| 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. | |
| std::string | str () const override |
| Return a brief, human-readable string representation of this. | |
| bool | operator== (const Ellipse &other) const |
| bool | operator!= (const Ellipse &other) const |
| virtual void | convolve (const Ellipse &ell) |
| Convolve this ellipse with another. | |
| virtual double | get_area () const |
| Return the area of this ellipse, equal to pi*sigma_major*sigma_minor. | |
| virtual double | get_cov_xy () const |
| Return the covariance, equal to sigma_x*sigma_y*rho. | |
| virtual double | get_hwhm_x () const |
| Get the x-axis half-width at half-maximum. | |
| virtual double | get_hwhm_y () const |
| Get the y-axis half-width at half-maximum. | |
| virtual double | get_radius_trace () const |
| Return the trace radius, equal to sqrt(sigma_x^2 + sigma_y^2) | |
| virtual double | get_sigma_x_sq () const |
| Get the square of sigma_x. | |
| virtual double | get_sigma_y_sq () const |
| Get the square of sigma_y. | |
| virtual double | get_sigma_xy () const |
| Return sigma_x*sigma_y. | |
| virtual std::array< double, 3 > | get_hxyr () const |
| Get hwhm_x, hwhm_y, rho. | |
| virtual std::array< double, 3 > | get_xyr () const |
| Get sigma_x, sigma_y, rho. | |
| virtual void | set (double sigma_x, double sigma_y, double rho) |
| Set sigma_x, sigma_y, rho. | |
| virtual void | set (const Covariance &covar) |
| Set values from a Covariance object. | |
| virtual void | set (const EllipseMajor &ellipse) |
| Set values from an EllipseMajor object. | |
| virtual void | set_h (double hwhm_x, double hwhm_y, double rho) |
| Set hwhm_x, hwhm_y, rho (half-width at half-max) | |
| virtual void | set_hwhm_x (double hwhm_x) |
| Set the x-axis half-width at half-max (FWHM/2) | |
| virtual void | set_hwhm_y (double hwhm_y) |
| Set the y-axis half-width at half-max (FWHM/2) | |
| virtual void | set_hxyr (const std::array< double, 3 > &hxyr) |
| Set hwhm_x, hwhm_y, rho from an array. | |
| virtual void | set_xyr (const std::array< double, 3 > &xyr) |
| Set sigma_x, sigma_y, rho from an array. | |
| bool | operator== (const EllipseData &other) const |
| bool | operator!= (const EllipseData &other) const |
Static Public Member Functions | |
| static void | check (double size_x, double size_y, double rho, std::string_view error_suffix="") |
| Check whether Ellipse parameter values are valid, throwing if not. | |
| static void | check_size (double size, std::string_view error_suffix="") |
| Check whether an x- or x-yaxis size value is valid. | |
| static void | check_rho (double rho, std::string_view error_suffix="") |
| Check whether a rho value is valid. | |
| static std::string_view | null_str (const std::string_view &namespace_separator) |
Static Public Attributes | |
| static constexpr std::string_view | CC_NAMESPACE_SEPARATOR = "::" |
| The C++ namespace separator. | |
| static constexpr std::string_view | NULL_STR_GENERAL = "None" |
| static constexpr std::string_view | PY_NAMESPACE_SEPARATOR = "." |
An Ellipse with sigma_x, sigma_y, and rho values.
This ellipse parameterization requires sigma_x and sigma_y >=0, and the correlation -1 < rho < 1.
|
explicit |
Definition at line 232 of file ellipse.cc.
|
explicit |
Construct a new Ellipse object with default float values.
| sigma_x | The initial sigma_x value (default 0) |
| sigma_y | The initial sigma_y value (default 0) |
| rho | The intial rho value (default 0) |
Definition at line 235 of file ellipse.cc.
|
explicit |
Definition at line 239 of file ellipse.cc.
|
explicit |
Definition at line 241 of file ellipse.cc.
|
inlinestaticinherited |
Check whether Ellipse parameter values are valid, throwing if not.
Definition at line 137 of file ellipse.h.
|
inlinestaticinherited |
Check whether a rho value is valid.
Definition at line 153 of file ellipse.h.
|
inlinestaticinherited |
|
virtualinherited |
Convolve this ellipse with another.
Definition at line 149 of file ellipse.cc.
|
virtualinherited |
Return the area of this ellipse, equal to pi*sigma_major*sigma_minor.
Definition at line 142 of file ellipse.cc.
|
virtualinherited |
| const EllipseData & lsst::gauss2d::Ellipse::get_data | ( | ) | const |
Return a const ref to this ellipse's data.
Definition at line 318 of file ellipse.cc.
|
virtualinherited |
Get the x-axis half-width at half-maximum.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 162 of file ellipse.cc.
|
virtualinherited |
Get the y-axis half-width at half-maximum.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 164 of file ellipse.cc.
|
virtualinherited |
Get hwhm_x, hwhm_y, rho.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 166 of file ellipse.cc.
|
virtualinherited |
Return the trace radius, equal to sqrt(sigma_x^2 + sigma_y^2)
Definition at line 173 of file ellipse.cc.
|
overridevirtual |
Get rho.
Implements lsst::gauss2d::EllipseData.
Definition at line 319 of file ellipse.cc.
|
overridevirtual |
Get sigma_x.
Implements lsst::gauss2d::EllipseData.
Definition at line 320 of file ellipse.cc.
|
virtualinherited |
|
virtualinherited |
|
overridevirtual |
Get sigma_y.
Implements lsst::gauss2d::EllipseData.
Definition at line 321 of file ellipse.cc.
|
virtualinherited |
Get the square of sigma_y.
Definition at line 180 of file ellipse.cc.
|
virtualinherited |
Get sigma_x, sigma_y, rho.
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 169 of file ellipse.cc.
| std::shared_ptr< Ellipse > lsst::gauss2d::Ellipse::make_convolution | ( | const Ellipse & | ell | ) | const |
Return the convolution of this with another ellipse.
Convolution simply sums the values of the covariance matrix terms.
| ell | The ellipse to convolve with. |
Definition at line 245 of file ellipse.cc.
| std::unique_ptr< Ellipse > lsst::gauss2d::Ellipse::make_convolution_uniq | ( | const Ellipse & | ell | ) | const |
Same as make_convolution(), but returning a unique_ptr.
Definition at line 248 of file ellipse.cc.
|
inlinestaticinherited |
Definition at line 49 of file object.h.
| bool lsst::gauss2d::Ellipse::operator!= | ( | const Ellipse & | other | ) | const |
Definition at line 316 of file ellipse.cc.
|
inlineinherited |
| bool lsst::gauss2d::Ellipse::operator== | ( | const Ellipse & | other | ) | const |
Definition at line 315 of file ellipse.cc.
|
inlineinherited |
Definition at line 216 of file ellipse.h.
|
overridevirtual |
Return a full, callable string representation of this.
| name_keywords | Whether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python). |
| namespace_separator | The string to use to delimit namespaces, i.e. :: in C++ and . in Python. |
Implements lsst::gauss2d::EllipseData.
Definition at line 308 of file ellipse.cc.
|
virtualinherited |
Set values from a Covariance object.
Definition at line 263 of file ellipse.cc.
|
virtualinherited |
Set values from an EllipseMajor object.
Definition at line 272 of file ellipse.cc.
|
virtualinherited |
Set sigma_x, sigma_y, rho.
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 256 of file ellipse.cc.
|
virtualinherited |
Set hwhm_x, hwhm_y, rho (half-width at half-max)
Reimplemented in lsst::gauss2d::EllipseValues, lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 297 of file ellipse.cc.
|
virtualinherited |
Set the x-axis half-width at half-max (FWHM/2)
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 303 of file ellipse.cc.
|
virtualinherited |
Set the y-axis half-width at half-max (FWHM/2)
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.
Definition at line 304 of file ellipse.cc.
|
virtualinherited |
Set hwhm_x, hwhm_y, rho from an array.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 305 of file ellipse.cc.
|
overridevirtual |
Set the correlation parameter (rho)
Implements lsst::gauss2d::EllipseData.
Definition at line 323 of file ellipse.cc.
|
overridevirtual |
Set the x-axis dispersion (sigma)
Implements lsst::gauss2d::EllipseData.
Definition at line 324 of file ellipse.cc.
|
overridevirtual |
Set the y-axis dispersion (sigma)
Implements lsst::gauss2d::EllipseData.
Definition at line 325 of file ellipse.cc.
|
virtualinherited |
Set sigma_x, sigma_y, rho from an array.
Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse, and lsst::gauss2d::fit::SersicEllipseData.
Definition at line 306 of file ellipse.cc.
|
overridevirtual |
Return a brief, human-readable string representation of this.
Implements lsst::gauss2d::EllipseData.
Definition at line 313 of file ellipse.cc.
|
staticconstexprinherited |
|
staticconstexprinherited |
|
staticconstexprinherited |