|
| | EllipseValues (std::shared_ptr< double > sigma_x, std::shared_ptr< double > sigma_y, std::shared_ptr< double > rho=nullptr) |
| | Construct a new EllipseValues object.
|
| |
|
| EllipseValues (double sigma_x=0, double sigma_y=0, double rho=0) |
| | Construct a new EllipseValues object, creating new pointers for every value.
|
| |
| double | get_sigma_x () const override |
| | Get sigma_x.
|
| |
| double | get_sigma_y () const override |
| | Get sigma_y.
|
| |
| double | get_rho () const override |
| | Get rho.
|
| |
| std::array< double, 3 > | get_xyr () const override |
| | Get sigma_x, sigma_y, rho.
|
| |
| void | set (double sigma_x, double sigma_y, double rho) override |
| | Set sigma_x, sigma_y, rho.
|
| |
| 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)
|
| |
| void | set_sigma_y (double sigma_y) override |
| | Set the y-axis dispersion (sigma)
|
| |
| void | set_rho (double rho) override |
| | Set the correlation parameter (rho)
|
| |
| std::string | repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override |
| |
| std::string | str () const override |
| | Return a brief, human-readable string representation of this.
|
| |
|
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 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_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 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 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 EllipseData storing sigma_x, sigma_y, rho values as shared_ptrs.
This implementation stores values in shared_ptrs, allowing sharing of values with other instances.