LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
lsst::gauss2d::Ellipse Class Reference

An Ellipse with sigma_x, sigma_y, and rho values. More...

#include <ellipse.h>

Inheritance diagram for lsst::gauss2d::Ellipse:
lsst::gauss2d::EllipseData lsst::gauss2d::Object

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 EllipseDataget_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< Ellipsemake_convolution (const Ellipse &ell) const
 Return the convolution of this with another ellipse.
 
std::unique_ptr< Ellipsemake_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 = "."
 

Detailed Description

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.

Note
This ellipse parameterization can be represented as a matrix, with sigma_x and sigma_y on the diagonal, and the other two values set to rho.

Definition at line 283 of file ellipse.h.

Constructor & Destructor Documentation

◆ Ellipse() [1/4]

lsst::gauss2d::Ellipse::Ellipse ( std::shared_ptr< EllipseData > data)
explicit

Definition at line 232 of file ellipse.cc.

233 : _data(data == nullptr ? std::make_shared<EllipseValues>() : std::move(data)) {};
char * data
Definition BaseRecord.cc:61
T move(T... args)
STL namespace.

◆ Ellipse() [2/4]

lsst::gauss2d::Ellipse::Ellipse ( double sigma_x = 0,
double sigma_y = 0,
double rho = 0 )
explicit

Construct a new Ellipse object with default float values.

Parameters
sigma_xThe initial sigma_x value (default 0)
sigma_yThe initial sigma_y value (default 0)
rhoThe intial rho value (default 0)

Definition at line 235 of file ellipse.cc.

235 : _data(std::make_shared<EllipseValues>()) {
236 _data->set(sigma_x, sigma_y, rho);
237}

◆ Ellipse() [3/4]

lsst::gauss2d::Ellipse::Ellipse ( const Covariance & covar)
explicit

Definition at line 239 of file ellipse.cc.

239: _data(std::make_shared<EllipseValues>()) { this->set(covar); }
daf::base::PropertySet * set
Definition fits.cc:931

◆ Ellipse() [4/4]

lsst::gauss2d::Ellipse::Ellipse ( const EllipseMajor & ellipse)
explicit

Definition at line 241 of file ellipse.cc.

241 : _data(std::make_shared<EllipseValues>()) {
242 this->set(ellipse);
243}

Member Function Documentation

◆ check()

static void lsst::gauss2d::EllipseData::check ( double size_x,
double size_y,
double rho,
std::string_view error_suffix = "" )
inlinestaticinherited

Check whether Ellipse parameter values are valid, throwing if not.

Definition at line 137 of file ellipse.h.

137 {
138 if (!(size_x >= 0) || !(size_y >= 0) || !(rho >= -1 && rho <= 1)) {
139 throw std::invalid_argument("Invalid size_x, size_y, rho=" + to_string_float(size_x) + ","
140 + to_string_float(size_y) + "," + to_string_float(rho)
141 + "; sigma_x,y >= 0 and 1 >= rho >= -1 required."
142 + std::string(error_suffix));
143 }
144 }
std::string to_string_float(const T value, const int precision=6, const bool scientific=true)
Definition to_string.h:15

◆ check_rho()

static void lsst::gauss2d::EllipseData::check_rho ( double rho,
std::string_view error_suffix = "" )
inlinestaticinherited

Check whether a rho value is valid.

Definition at line 153 of file ellipse.h.

153 {
154 if (!(rho >= -1 && rho <= 1)) {
155 throw std::invalid_argument("Invalid rho=" + to_string_float(rho) + "; 1 >= rho >= -1 required."
156 + std::string(error_suffix));
157 }
158 }

◆ check_size()

static void lsst::gauss2d::EllipseData::check_size ( double size,
std::string_view error_suffix = "" )
inlinestaticinherited

Check whether an x- or x-yaxis size value is valid.

Definition at line 146 of file ellipse.h.

146 {
147 if (!(size >= 0)) {
148 throw std::invalid_argument("Invalid size=" + to_string_float(size) + "; size >= 0 required."
149 + std::string(error_suffix));
150 }
151 }

◆ convolve()

void lsst::gauss2d::EllipseData::convolve ( const Ellipse & ell)
virtualinherited

Convolve this ellipse with another.

Definition at line 149 of file ellipse.cc.

149 {
150 double sigma_x_ell = ell.get_sigma_x();
151 double sigma_y_ell = ell.get_sigma_y();
152 double sigma_x = this->get_sigma_x();
153 sigma_x = sqrt(sigma_x * sigma_x + sigma_x_ell * sigma_x_ell);
154 double sigma_y = this->get_sigma_y();
155 sigma_y = sqrt(sigma_y * sigma_y + sigma_y_ell * sigma_y_ell);
156 double rho = (this->get_cov_xy() + ell.get_cov_xy()) / (sigma_x * sigma_y);
157 this->set(sigma_x, sigma_y, rho);
158}
virtual double get_cov_xy() const
Return the covariance, equal to sigma_x*sigma_y*rho.
Definition ellipse.cc:160
virtual double get_sigma_y() const =0
Get sigma_y.
virtual double get_sigma_x() const =0
Get sigma_x.

◆ get_area()

double lsst::gauss2d::EllipseData::get_area ( ) const
virtualinherited

Return the area of this ellipse, equal to pi*sigma_major*sigma_minor.

Definition at line 142 of file ellipse.cc.

142 {
143 double rho = this->get_rho();
144 return M_PI * this->get_sigma_xy() * sqrt(1 - rho * rho);
145}
#define M_PI
Definition ListMatch.cc:31
virtual double get_rho() const =0
Get rho.
virtual double get_sigma_xy() const
Return sigma_x*sigma_y.
Definition ellipse.cc:147

◆ get_cov_xy()

double lsst::gauss2d::EllipseData::get_cov_xy ( ) const
virtualinherited

Return the covariance, equal to sigma_x*sigma_y*rho.

Definition at line 160 of file ellipse.cc.

160{ return this->get_sigma_x() * this->get_sigma_y() * this->get_rho(); }

◆ get_data()

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.

318{ return *this->_data; }

◆ get_hwhm_x()

double lsst::gauss2d::EllipseData::get_hwhm_x ( ) const
virtualinherited

Get the x-axis half-width at half-maximum.

Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.

Definition at line 162 of file ellipse.cc.

162{ return M_SIGMA_HWHM * this->get_sigma_x(); };
const double M_SIGMA_HWHM
Definition ellipse.h:39

◆ get_hwhm_y()

double lsst::gauss2d::EllipseData::get_hwhm_y ( ) const
virtualinherited

Get the y-axis half-width at half-maximum.

Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.

Definition at line 164 of file ellipse.cc.

164{ return M_SIGMA_HWHM * this->get_sigma_y(); };

◆ get_hxyr()

std::array< double, 3 > lsst::gauss2d::EllipseData::get_hxyr ( ) const
virtualinherited

Get hwhm_x, hwhm_y, rho.

Reimplemented in lsst::gauss2d::fit::GaussianParametricEllipse.

Definition at line 166 of file ellipse.cc.

166 {
167 return {this->get_hwhm_x(), this->get_hwhm_y(), this->get_rho()};
168}
virtual double get_hwhm_y() const
Get the y-axis half-width at half-maximum.
Definition ellipse.cc:164
virtual double get_hwhm_x() const
Get the x-axis half-width at half-maximum.
Definition ellipse.cc:162

◆ get_radius_trace()

double lsst::gauss2d::EllipseData::get_radius_trace ( ) const
virtualinherited

Return the trace radius, equal to sqrt(sigma_x^2 + sigma_y^2)

Definition at line 173 of file ellipse.cc.

173{ return sqrt(this->get_sigma_x_sq() + this->get_sigma_y_sq()); }
virtual double get_sigma_x_sq() const
Get the square of sigma_x.
Definition ellipse.cc:175
virtual double get_sigma_y_sq() const
Get the square of sigma_y.
Definition ellipse.cc:180

◆ get_rho()

double lsst::gauss2d::Ellipse::get_rho ( ) const
overridevirtual

Get rho.

Implements lsst::gauss2d::EllipseData.

Definition at line 319 of file ellipse.cc.

319{ return this->_data->get_rho(); }

◆ get_sigma_x()

double lsst::gauss2d::Ellipse::get_sigma_x ( ) const
overridevirtual

Get sigma_x.

Implements lsst::gauss2d::EllipseData.

Definition at line 320 of file ellipse.cc.

320{ return this->_data->get_sigma_x(); }

◆ get_sigma_x_sq()

double lsst::gauss2d::EllipseData::get_sigma_x_sq ( ) const
virtualinherited

Get the square of sigma_x.

Definition at line 175 of file ellipse.cc.

175 {
176 double sigma = this->get_sigma_x();
177 return sigma * sigma;
178}
afw::table::Key< double > sigma

◆ get_sigma_xy()

double lsst::gauss2d::EllipseData::get_sigma_xy ( ) const
virtualinherited

Return sigma_x*sigma_y.

Definition at line 147 of file ellipse.cc.

147{ return this->get_sigma_x() * this->get_sigma_y(); }

◆ get_sigma_y()

double lsst::gauss2d::Ellipse::get_sigma_y ( ) const
overridevirtual

Get sigma_y.

Implements lsst::gauss2d::EllipseData.

Definition at line 321 of file ellipse.cc.

321{ return this->_data->get_sigma_y(); }

◆ get_sigma_y_sq()

double lsst::gauss2d::EllipseData::get_sigma_y_sq ( ) const
virtualinherited

Get the square of sigma_y.

Definition at line 180 of file ellipse.cc.

180 {
181 double sigma = this->get_sigma_y();
182 return sigma * sigma;
183}

◆ get_xyr()

std::array< double, 3 > lsst::gauss2d::EllipseData::get_xyr ( ) const
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.

169 {
170 return {this->get_sigma_x(), this->get_sigma_y(), this->get_rho()};
171}

◆ make_convolution()

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.

Parameters
ellThe ellipse to convolve with.
Returns
A new ellipse with values set to the convolution.

Definition at line 245 of file ellipse.cc.

245 {
246 return this->make_convolution_uniq(ell);
247}
std::unique_ptr< Ellipse > make_convolution_uniq(const Ellipse &ell) const
Same as make_convolution(), but returning a unique_ptr.
Definition ellipse.cc:248

◆ make_convolution_uniq()

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.

248 {
249 // TODO: Replace with cloning derived data
251 = std::make_unique<Ellipse>(this->get_sigma_x(), this->get_sigma_y(), this->get_rho());
252 ell_ret->convolve(ell);
253 return ell_ret;
254}
double get_rho() const override
Get rho.
Definition ellipse.cc:319
double get_sigma_x() const override
Get sigma_x.
Definition ellipse.cc:320
double get_sigma_y() const override
Get sigma_y.
Definition ellipse.cc:321

◆ null_str()

static std::string_view lsst::gauss2d::Object::null_str ( const std::string_view & namespace_separator)
inlinestaticinherited

Definition at line 49 of file object.h.

49 {
50 return namespace_separator == CC_NAMESPACE_SEPARATOR ? "nullptr" : NULL_STR_GENERAL;
51 }
static constexpr std::string_view CC_NAMESPACE_SEPARATOR
The C++ namespace separator.
Definition object.h:45
static constexpr std::string_view NULL_STR_GENERAL
Definition object.h:46

◆ operator!=() [1/2]

bool lsst::gauss2d::Ellipse::operator!= ( const Ellipse & other) const

Definition at line 316 of file ellipse.cc.

316{ return !(*this == other); }

◆ operator!=() [2/2]

bool lsst::gauss2d::EllipseData::operator!= ( const EllipseData & other) const
inlineinherited

Definition at line 217 of file ellipse.h.

217{ return !(*this == other); };

◆ operator==() [1/2]

bool lsst::gauss2d::Ellipse::operator== ( const Ellipse & other) const

Definition at line 315 of file ellipse.cc.

315{ return get_data() == other.get_data(); };
const EllipseData & get_data() const
Return a const ref to this ellipse's data.
Definition ellipse.cc:318

◆ operator==() [2/2]

bool lsst::gauss2d::EllipseData::operator== ( const EllipseData & other) const
inlineinherited

Definition at line 216 of file ellipse.h.

216{ return get_xyr() == other.get_xyr(); };
virtual std::array< double, 3 > get_xyr() const
Get sigma_x, sigma_y, rho.
Definition ellipse.cc:169

◆ repr()

std::string lsst::gauss2d::Ellipse::repr ( bool name_keywords = false,
std::string_view namespace_separator = Object::CC_NAMESPACE_SEPARATOR ) const
overridevirtual

Return a full, callable string representation of this.

Parameters
name_keywordsWhether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python).
namespace_separatorThe string to use to delimit namespaces, i.e. :: in C++ and . in Python.
Returns
A callable string representation of this, which should return an an identical object to this.
Note
The representation with name_keywords=false must be callable in C++. The representation with name_keywords=true should be callable in Python, if there are any bindings.

Implements lsst::gauss2d::EllipseData.

Definition at line 308 of file ellipse.cc.

308 {
309 return type_name_str<Ellipse>(false, namespace_separator) + "(" + (name_keywords ? "data=" : "")
310 + _data->repr(name_keywords, namespace_separator) + ")";
311}

◆ set() [1/3]

void lsst::gauss2d::EllipseData::set ( const Covariance & covar)
virtualinherited

Set values from a Covariance object.

Definition at line 263 of file ellipse.cc.

263 {
264 double sigma_x = covar.get_sigma_x_sq();
265 double sigma_y = covar.get_sigma_y_sq();
266 sigma_x = sqrt(sigma_x);
267 sigma_y = sqrt(sigma_y);
268 double rho = (sigma_x == 0 || sigma_y == 0) ? 0 : covar.get_cov_xy() / (sigma_x * sigma_y);
269 this->set(sigma_x, sigma_y, rho);
270}

◆ set() [2/3]

void lsst::gauss2d::EllipseData::set ( const EllipseMajor & ellipse)
virtualinherited

Set values from an EllipseMajor object.

Definition at line 272 of file ellipse.cc.

272 {
273 const double r_major = ellipse.get_r_major();
274 if (r_major == 0) {
275 this->set(0, 0, 0);
276 return;
277 }
278 const double axrat = ellipse.get_axrat();
279 if (axrat == 1) {
280 this->set(r_major, r_major, 0);
281 return;
282 }
283 const auto [sin_th, cos_th] = sincos(ellipse.get_angle_radians());
284 const double sin_th_sq = sin_th * sin_th;
285 const double cos_th_sq = cos_th * cos_th;
286
287 const double r_major_sq = r_major * r_major;
288 const double r_minor_sq = r_major_sq * axrat * axrat;
289 const double sigma_x = sqrt(cos_th_sq * r_major_sq + sin_th_sq * r_minor_sq);
290 const double sigma_y = sqrt(sin_th_sq * r_major_sq + cos_th_sq * r_minor_sq);
291 double rho = (sigma_x == 0 || sigma_y == 0)
292 ? 0
293 : sin_th * cos_th * (r_major_sq - r_minor_sq) / (sigma_x * sigma_y);
294 this->set(sigma_x, sigma_y, rho);
295}
std::pair< S, S > sincos(S arg)
Definition ellipse.cc:36

◆ set() [3/3]

void lsst::gauss2d::EllipseData::set ( double sigma_x,
double sigma_y,
double rho )
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.

256 {
257 this->check(sigma_x, sigma_y, rho);
258 this->set_sigma_x(sigma_x);
259 this->set_sigma_y(sigma_y);
260 this->set_rho(rho);
261}
virtual void set_rho(double rho)=0
Set the correlation parameter (rho)
virtual void set_sigma_y(double sigma_y)=0
Set the y-axis dispersion (sigma)
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.
Definition ellipse.h:137
virtual void set_sigma_x(double sigma_x)=0
Set the x-axis dispersion (sigma)

◆ set_h()

void lsst::gauss2d::EllipseData::set_h ( double hwhm_x,
double hwhm_y,
double rho )
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.

297 {
298 EllipseData::check(hwhm_x, hwhm_y, rho);
299 this->set_hwhm_x(hwhm_x);
300 this->set_hwhm_y(hwhm_y);
301 this->set_rho(rho);
302}
virtual void set_hwhm_y(double hwhm_y)
Set the y-axis half-width at half-max (FWHM/2)
Definition ellipse.cc:304
virtual void set_hwhm_x(double hwhm_x)
Set the x-axis half-width at half-max (FWHM/2)
Definition ellipse.cc:303

◆ set_hwhm_x()

void lsst::gauss2d::EllipseData::set_hwhm_x ( double hwhm_x)
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.

303{ this->set_sigma_x(M_HWHM_SIGMA * hwhm_x); }
const double M_HWHM_SIGMA
Definition ellipse.h:38

◆ set_hwhm_y()

void lsst::gauss2d::EllipseData::set_hwhm_y ( double hwhm_y)
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.

304{ this->set_sigma_y(M_HWHM_SIGMA * hwhm_y); }

◆ set_hxyr()

void lsst::gauss2d::EllipseData::set_hxyr ( const std::array< double, 3 > & hxyr)
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.

305{ this->set_h(hxyr[0], hxyr[1], hxyr[2]); }
virtual void set_h(double hwhm_x, double hwhm_y, double rho)
Set hwhm_x, hwhm_y, rho (half-width at half-max)
Definition ellipse.cc:297

◆ set_rho()

void lsst::gauss2d::Ellipse::set_rho ( double rho)
overridevirtual

Set the correlation parameter (rho)

Implements lsst::gauss2d::EllipseData.

Definition at line 323 of file ellipse.cc.

323{ this->_data->set_rho(rho); }

◆ set_sigma_x()

void lsst::gauss2d::Ellipse::set_sigma_x ( double sigma_x)
overridevirtual

Set the x-axis dispersion (sigma)

Implements lsst::gauss2d::EllipseData.

Definition at line 324 of file ellipse.cc.

324{ this->_data->set_sigma_x(sigma_x); }

◆ set_sigma_y()

void lsst::gauss2d::Ellipse::set_sigma_y ( double sigma_y)
overridevirtual

Set the y-axis dispersion (sigma)

Implements lsst::gauss2d::EllipseData.

Definition at line 325 of file ellipse.cc.

325{ this->_data->set_sigma_y(sigma_y); }

◆ set_xyr()

void lsst::gauss2d::EllipseData::set_xyr ( const std::array< double, 3 > & xyr)
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.

306{ this->set(xyr[0], xyr[1], xyr[2]); }

◆ str()

std::string lsst::gauss2d::Ellipse::str ( ) const
overridevirtual

Return a brief, human-readable string representation of this.

Implements lsst::gauss2d::EllipseData.

Definition at line 313 of file ellipse.cc.

313{ return type_name_str<Ellipse>(true) + "(data=" + _data->str() + ")"; }

Member Data Documentation

◆ CC_NAMESPACE_SEPARATOR

constexpr std::string_view lsst::gauss2d::Object::CC_NAMESPACE_SEPARATOR = "::"
staticconstexprinherited

The C++ namespace separator.

Definition at line 45 of file object.h.

◆ NULL_STR_GENERAL

constexpr std::string_view lsst::gauss2d::Object::NULL_STR_GENERAL = "None"
staticconstexprinherited

Definition at line 46 of file object.h.

◆ PY_NAMESPACE_SEPARATOR

constexpr std::string_view lsst::gauss2d::Object::PY_NAMESPACE_SEPARATOR = "."
staticconstexprinherited

Definition at line 47 of file object.h.


The documentation for this class was generated from the following files: