Loading [MathJax]/extensions/tex2jax.js
LSST Applications g04dff08e69+fafbcb10e2,g0d33ba9806+3d21495239,g0fba68d861+2ea2a6c4b0,g1e78f5e6d3+b3e27b8ebc,g1ec0fe41b4+f536777771,g1fd858c14a+ae46bc2a71,g35bb328faa+fcb1d3bbc8,g4af146b050+9c38a215af,g4d2262a081+154bb484c1,g53246c7159+fcb1d3bbc8,g5a012ec0e7+b20b785ecb,g60b5630c4e+3d21495239,g6273192d42+8013d063df,g67b6fd64d1+4086c0989b,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g87b7deb4dc+04106995ce,g8852436030+54b48a5987,g89139ef638+4086c0989b,g9125e01d80+fcb1d3bbc8,g94187f82dc+3d21495239,g989de1cb63+4086c0989b,g9d31334357+3d21495239,g9f33ca652e+83205baa3c,gabe3b4be73+1e0a283bba,gabf8522325+fa80ff7197,gb1101e3267+85d1f90f4c,gb58c049af0+f03b321e39,gb89ab40317+4086c0989b,gc0bb628dac+d11454dffd,gcf25f946ba+54b48a5987,gd6cbbdb0b4+af3c3595f5,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+1b29a75088,ge278dab8ac+d65b3c2b70,ge410e46f29+4086c0989b,gf67bdafdda+4086c0989b,v29.0.0.rc6
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
gaussianmodelintegral.cc
Go to the documentation of this file.
2
6
7namespace lsst::gauss2d::fit {
8
10 const std::shared_ptr<const IntegralModel> integralmodel)
11 : _channel(channel), _integralmodel(std::move(integralmodel)) {
12 if (_integralmodel == nullptr)
13 throw std::invalid_argument("GaussianModelIntegral integralmodel can't be null");
14}
16
17double GaussianModelIntegral::get_value() const { return _integralmodel->get_integral(_channel); }
19 throw std::runtime_error("Can't set_value on GaussianModelIntegral");
20}
21
22std::string GaussianModelIntegral::repr(bool name_keywords, std::string_view namespace_separator) const {
23 return type_name_str<GaussianModelIntegral>(false, namespace_separator) + "("
24 + (name_keywords ? "channel=" : "") + _channel.repr(name_keywords, namespace_separator) + ", "
25 + (name_keywords ? "integralmodel=" : "")
26 + _integralmodel->repr(name_keywords, namespace_separator) + ")";
27}
28
30 return type_name_str<GaussianModelIntegral>(true) + "(channel=" + _channel.str()
31 + ", integralmodel=" + _integralmodel->str() + ")";
32}
33
34} // namespace lsst::gauss2d::fit
An observational channel, usually representing some range of wavelengths of light.
Definition channel.h:29
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.
const std::shared_ptr< const IntegralModel > _integralmodel
GaussianModelIntegral(const Channel &channel, const std::shared_ptr< const IntegralModel > integralmodel)
Construct a GaussianModelIntegral instance for one Channel.
std::string str() const override
Return a brief, human-readable string representation of this.
std::string type_name_str(bool strip_namespace=false, std::string_view namespace_str=detail::NAMESPACE_SEPARATOR)
Get a string representation of an arbitrary C++ type, potentially modifying its namespace prefix.
Definition type_name.h:104
STL namespace.