Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0f08755f38+9522ef2f0f,g1653933729+a905cd61c3,g168dd56ebc+a905cd61c3,g1a2382251a+910d683904,g20f6ffc8e0+9522ef2f0f,g217e2c1bcf+f4af07de8a,g28da252d5a+26a25b978d,g2bbee38e9b+cc7bbd92cc,g2bc492864f+cc7bbd92cc,g32e5bea42b+de24d92311,g347aa1857d+cc7bbd92cc,g35bb328faa+a905cd61c3,g3a166c0a6a+cc7bbd92cc,g3bd4b5ce2c+02735527dc,g3e281a1b8c+2bff41ced5,g414038480c+4de324692b,g41af890bb2+4fc8c6ef01,g43bc871e57+d0d7cc457a,g78460c75b0+4ae99bb757,g80478fca09+615987a4d7,g82479be7b0+970d1d03ea,g8365541083+a905cd61c3,g858d7b2824+9522ef2f0f,g9125e01d80+a905cd61c3,ga5288a1d22+9ad990292e,gb58c049af0+84d1b6ec45,gc28159a63d+cc7bbd92cc,gc5452a3dca+b82ec7cc4c,gcab2d0539d+475d436cbd,gcf0d15dbbd+d816b8a730,gda6a2b7d83+d816b8a730,gdaeeff99f8+686ef0dd99,ge79ae78c31+cc7bbd92cc,gef2f8181fd+c1889b0e42,gf0baf85859+f9edac6842,gf1e97e5484+a55c27affc,gfa517265be+9522ef2f0f,gfa999e8aa5+d85414070d,w.2025.01
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
parametricgaussian1d.cc
Go to the documentation of this file.
2
3#include "lsst/gauss2d/fit/parameters.h"
5
6namespace lsst::gauss2d::fit {
7
10 : _mean(std::move(mean)), _stddev(std::move(stddev)) {
11 if (_mean == nullptr) _mean = std::make_shared<MeanParameterD>();
12 if (_stddev == nullptr) _stddev = std::make_shared<StdDevParameterD>();
13}
14
16
17double ParametricGaussian1D::get_mean() const { return this->_mean->get_value(); }
18
19double ParametricGaussian1D::get_stddev() const { return this->_stddev->get_value(); }
20
22
24
25void ParametricGaussian1D::set_mean(double value) { this->_mean->set_value(value); }
26
27void ParametricGaussian1D::set_stddev(double value) { this->_stddev->set_value(value); }
28
29std::string ParametricGaussian1D::repr(bool name_keywords, std::string_view namespace_separator) const {
30 return type_name_str<ParametricGaussian1D>(false, namespace_separator) + "("
31 + (name_keywords ? "mean=" : "") + _mean->repr(name_keywords, namespace_separator)
32 + (name_keywords ? ", stddev=" : "") + _stddev->repr(name_keywords, namespace_separator) + ")";
33}
34
36 return type_name_str<ParametricGaussian1D>(true) + "(mean=" + _mean->str() + ", stddev=" + _stddev->str()
37 + ")";
38}
39} // namespace lsst::gauss2d::fit
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.
std::string str() const override
Return a brief, human-readable string representation of this.
ParametricGaussian1D(std::shared_ptr< MeanParameterD > mean=nullptr, std::shared_ptr< StdDevParameterD > stddev=nullptr)
STL namespace.