Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0d33ba9806+3d1aa5cd78,g0fba68d861+6c07529581,g1e78f5e6d3+aa4d1c21f1,g1ec0fe41b4+f536777771,g1fd858c14a+c6963eae98,g35bb328faa+fcb1d3bbc8,g4af146b050+58cb980876,g4d2262a081+bfae794ebc,g53246c7159+fcb1d3bbc8,g5a012ec0e7+b20b785ecb,g60b5630c4e+3d1aa5cd78,g67b6fd64d1+4086c0989b,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+a8b896a16a,g8852436030+75f93ca278,g89139ef638+4086c0989b,g9125e01d80+fcb1d3bbc8,g94187f82dc+3d1aa5cd78,g989de1cb63+4086c0989b,g9f33ca652e+94dd9a85be,g9f7030ddb1+3f50642ad9,ga2b97cdc51+3d1aa5cd78,ga44b1db4f6+7d2d5e68ea,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+96cb2ddcf2,gb58c049af0+f03b321e39,gb89ab40317+4086c0989b,gcf25f946ba+75f93ca278,gd6cbbdb0b4+af3c3595f5,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+ed90e8109d,ge278dab8ac+d65b3c2b70,ge410e46f29+4086c0989b,gf67bdafdda+4086c0989b,gfe06eef73a+e2ab3e8e4f,v29.0.0.rc5
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
sersicmix.h
Go to the documentation of this file.
1#ifndef LSST_GAUSS2D_FIT_SERSICMIX_H
2#define LSST_GAUSS2D_FIT_SERSICMIX_H
3
4#include <array>
5#include <memory>
6#include <stdexcept>
7#include <vector>
8
9#include "interpolation.h"
10#include "lsst/gauss2d/object.h"
11
12namespace lsst::gauss2d::fit {
13
14static const unsigned short SERSICMIX_ORDER_DEFAULT = 4;
15
19class IntegralSize : public Object {
20public:
21 explicit IntegralSize(double integral_, double sigma_);
22
23 const double integral;
24 const double sigma;
25
26 std::string repr(bool name_keywords = false,
27 std::string_view namespace_separator = Object::CC_NAMESPACE_SEPARATOR) const override;
28 std::string str() const override;
29};
30
35public:
42 virtual std::vector<IntegralSize> get_integralsizes(double sersicindex) const = 0;
43 virtual std::vector<IntegralSize> get_integralsizes_derivs(double sersicindex) const = 0;
44
45 virtual InterpType get_interptype() const = 0;
46 virtual unsigned short get_order() const = 0;
47};
48
50 unsigned short order = SERSICMIX_ORDER_DEFAULT);
51
55class SersicMixValues : public Object {
56public:
64
65 const double sersicindex;
67
68 std::string repr(bool name_keywords = false,
69 std::string_view namespace_separator = Object::CC_NAMESPACE_SEPARATOR) const override;
70 std::string str() const override;
71};
72
73inline bool operator<(const SersicMixValues &lhs, const SersicMixValues &rhs) {
74 return lhs.sersicindex < rhs.sersicindex;
75}
76inline bool operator<(const SersicMixValues &lhs, double x) { return lhs.sersicindex < x; }
77inline bool operator<(double x, const SersicMixValues &rhs) { return x < rhs.sersicindex; }
78
80
81const std::vector<SersicMixValues> &get_sersic_mix_knots(unsigned short order);
82
85
86} // namespace lsst::gauss2d::fit
87
88#endif
A generic object from the gauss2d library.
Definition object.h:40
static constexpr std::string_view CC_NAMESPACE_SEPARATOR
The C++ namespace separator.
Definition object.h:45
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.
Definition sersicmix.cc:14
std::string str() const override
Return a brief, human-readable string representation of this.
Definition sersicmix.cc:20
IntegralSize(double integral_, double sigma_)
Definition sersicmix.cc:25
An interpolator that returns IntegralSize vectors for a given Sersic index.
Definition sersicmix.h:34
virtual unsigned short get_order() const =0
virtual std::vector< IntegralSize > get_integralsizes(double sersicindex) const =0
Get the vector of IntegralSize values for a given Sersic index.
virtual std::vector< IntegralSize > get_integralsizes_derivs(double sersicindex) const =0
virtual InterpType get_interptype() const =0
A vector of IntegralSize values for a given Sersic index.
Definition sersicmix.h:55
SersicMixValues(double sersicindex, std::vector< IntegralSize > values)
Construct a SersicMixValues.
Definition sersicmix.cc:47
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.
Definition sersicmix.cc:27
std::string str() const override
Return a brief, human-readable string representation of this.
Definition sersicmix.cc:33
const std::vector< IntegralSize > values
Definition sersicmix.h:66
const std::vector< SersicMixValues > & get_sersic_mix_knots_order4()
Definition sersicmix.cc:58
const std::vector< SersicMixValues > & get_sersic_mix_knots_order8()
Definition sersicmix.cc:63
std::vector< SersicMixValues > get_sersic_mix_knots_copy(unsigned short order)
Definition sersicmix.cc:68
bool operator<(const std::reference_wrapper< const Channel > &lhs, const std::reference_wrapper< const Channel > &rhs)
Definition channel.h:104
const std::vector< SersicMixValues > & get_sersic_mix_knots(unsigned short order)
Definition sersicmix.cc:50
const std::shared_ptr< const SersicMixInterpolator > get_sersic_mix_interpolator_default(unsigned short order=SERSICMIX_ORDER_DEFAULT)
Definition sersicmix.cc:38