LSST Applications g04a91732dc+c316cf5b3a,g07dc498a13+fb7087bc2f,g1409bbee79+fb7087bc2f,g1a7e361dbc+fb7087bc2f,g1fd858c14a+aec6ef928c,g33399d78f5+40c06f64a8,g35bb328faa+e55fef2c71,g3bd4b5ce2c+2905670c8d,g3dabb73f91+bea4d5a39d,g424a4f6e28+abed75ca55,g53246c7159+e55fef2c71,g5477a8d5ce+dc8a1f68b0,g60b5630c4e+abed75ca55,g78460c75b0+8427c4cc8f,g786e29fd12+307f82e6af,g8534526c7b+8e1c6b434f,g89139ef638+fb7087bc2f,g8b49a6ea8e+abed75ca55,g8e3b232dfe+ae99801921,g9125e01d80+e55fef2c71,g989de1cb63+fb7087bc2f,g9f33ca652e+3c31457565,gaaedd4e678+fb7087bc2f,gabe3b4be73+9c0c3c7524,gb1101e3267+49fea2c512,gb58c049af0+28045f66fd,gca43fec769+e55fef2c71,gce7788e931+d1fd0c5240,gcf25f946ba+40c06f64a8,gd6cbbdb0b4+f6e5445f66,gdd9490a0bf+d85bd9e56f,gde0f65d7ad+d075e886b3,ge278dab8ac+b4c2c8faf7,geab183fbe5+abed75ca55,gec3dcf77f0+e7bc33f3ea,gecb8035dfe+1f480bec5e,gf58bf46354+e55fef2c71,gfe7187db8c+7aa4e308f2,w.2025.05
LSST Data Management Base Package
Loading...
Searching...
No Matches
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.
Definition channel.cc:99
std::string str() const override
Return a brief, human-readable string representation of this.
Definition channel.cc:104
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.