LSST Applications g013ef56533+b8d55c8942,g083dd6704c+a047e97985,g199a45376c+0ba108daf9,g1fd858c14a+7a3b874d60,g210f2d0738+7416ca6900,g262e1987ae+1d557ba9a3,g29ae962dfc+519d34895e,g2cef7863aa+aef1011c0b,g30d7c61c20+36d16ea71a,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+cb326ad149,g47891489e3+f459a6810c,g53246c7159+8c5ae1fdc5,g54cd7ddccb+890c8e1e5d,g5a60e81ecd+6240c63dbc,g64539dfbff+7416ca6900,g67b6fd64d1+f459a6810c,g6ebf1fc0d4+8c5ae1fdc5,g74acd417e5+0bae3c876a,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g89139ef638+f459a6810c,g8d7436a09f+dee7680868,g8ea07a8fe4+81eaaadc04,g90f42f885a+34c0557caf,g97be763408+14b8164b5b,g98a1a72a9c+8389601a76,g98df359435+fff771c62d,gb8cb2b794d+6728931916,gbf99507273+8c5ae1fdc5,gc2a301910b+7416ca6900,gca7fc764a6+f459a6810c,gd7ef33dd92+f459a6810c,gdab6d2f7ff+0bae3c876a,ge410e46f29+f459a6810c,ge41e95a9f2+7416ca6900,geaed405ab2+e3b4b2a692,gf9a733ac38+8c5ae1fdc5,w.2025.43
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.
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.