LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Protected Attributes | List of all members
lsst::modelfit::parameters::Parameter< T, C > Class Template Reference

A parameter with values and metadata. More...

#include <parameter.h>

Inheritance diagram for lsst::modelfit::parameters::Parameter< T, C >:
lsst::modelfit::parameters::ParameterBase< T > std::enable_shared_from_this< C > lsst::modelfit::parameters::Object lsst::gauss2d::fit::CentroidXParameterD lsst::gauss2d::fit::CentroidYParameterD lsst::gauss2d::fit::IntegralParameterD lsst::gauss2d::fit::MeanParameterD lsst::gauss2d::fit::MoffatConcentrationParameterD lsst::gauss2d::fit::ProperFractionParameterD lsst::gauss2d::fit::RadiusScaleParameterD lsst::gauss2d::fit::ReffXParameterD lsst::gauss2d::fit::ReffYParameterD lsst::gauss2d::fit::RhoParameterD lsst::gauss2d::fit::SersicIndexParameterD lsst::gauss2d::fit::SigmaXParameterD lsst::gauss2d::fit::SigmaYParameterD lsst::gauss2d::fit::StdDevParameterD

Public Member Functions

std::string get_desc () const override
 Get a string description for this parameter class.
 
get_default () const override
 Get the default value.
 
bool get_fixed () const override
 Return whether the parameter is fixed (not free).
 
bool get_free () const override
 Return whether the parameter is free (not fixed).
 
std::string get_label () const override
 Return a string label for this parameter instance.
 
const Limits< T > & get_limits_maximal () const override
 Return limits representing the maximum/minimum untransformed value.
 
const Limits< T > & get_limits () const override
 Return the limits for the untransformed value.
 
bool get_linear () const override
 Return whether the parameter is linear.
 
get_min () const override
 Return the minimum value for this parameter instance.
 
get_max () const override
 Return the maximum value for this parameter instance.
 
std::string get_name () const override
 Get a string name for this parameter class.
 
const Transform< T > & get_transform () const override
 Return the transforming function for this parameter instance.
 
std::shared_ptr< const Transform< T > > get_transform_ptr () const override
 Return the transform pointer for this parameter instance.
 
get_transform_derivative () const override
 Return the derivative of the transform for this parameter instance.
 
const Unitget_unit () const override
 Return the unit of this parameter instance.
 
get_value () const override
 Return the untransformed value of this parameter instance.
 
get_value_transformed () const override
 Return the transformed value of this parameter instance.
 
std::shared_ptr< C > ptr ()
 Return a shared pointer to this.
 
void set_fixed (bool fixed) override
 Set the parameter to be fixed (or not).
 
void set_free (bool free) override
 Set the parameter to be free (or not).
 
void set_label (std::string label) override
 Set the string label for this parameter instance.
 
void set_limits (std::shared_ptr< const Limits< T > > limits) override
 Set the limits for this parameter instance.
 
void set_transform (const std::shared_ptr< const Transform< T > > transform) override
 Set the transforming function for this parameter instance.
 
void set_value (T value) override
 Set the untransformed value for this parameter instance.
 
void set_value_transformed (T value_transformed) override
 Set the transformed value for this parameter instance.
 
void set_unit (std::shared_ptr< const Unit > unit=nullptr) override
 Set the unit for this parameter instance.
 
std::string repr (bool name_keywords=false, const 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.
 
 Parameter (T value=_get_default(), std::shared_ptr< const Limits< T > > limits=nullptr, const std::shared_ptr< const Transform< T > > transform=nullptr, std::shared_ptr< const Unit > unit=nullptr, bool fixed=false, std::string label="")
 Initialize a Parameter.
 
 ~Parameter ()
 
shared_from_this (T... args)
 

Static Public Member Functions

static constexpr T _get_default ()
 Get the default value for the derived type of this.
 
static const std::string get_type_name (bool strip_namespace_separator=false, const std::string_view &namespace_separator=detail::NAMESPACE_SEPARATOR)
 Get the name of the derived type of this.
 
static const UnitTransform< T > & transform_none ()
 

Static Public Attributes

static constexpr std::string_view CC_NAMESPACE_SEPARATOR = "::"
 The C++ namespace separator.
 

Static Protected Member Functions

static const std::string _get_desc ()
 
static constexpr bool _get_linear ()
 
static constexpr T _get_min ()
 
static constexpr T _get_max ()
 
static const std::string _get_name ()
 

Protected Attributes

_value
 The untransformed value.
 
_value_transformed
 The cached, transformed value.
 

Detailed Description

template<typename T, class C>
class lsst::modelfit::parameters::Parameter< T, C >

A parameter with values and metadata.

This is a CRTP implementation of the ParameterBase interface, which allows for concise, minimal-effort derived classes (see tests and examples).

Template Parameters
TThe type of the value. Only floating point values are tested.
CThe derived class.
Note
Parameters can be set as free/fixed when they are part of a model. This designation is indicative and does not prevent the parameter value from being changed by users.
CRTP performance benefits are likely lost by having an abstract base class with virtual methods; see ParameterBase Notes. This may be obviated by future compiler improvements.
The main benefit of CRTP left is that derived classes can be implemented just by defining static members. The implementation thereof in this class is not trivial, however.

Definition at line 150 of file parameter.h.

Constructor & Destructor Documentation

◆ Parameter()

template<typename T , class C >
lsst::modelfit::parameters::Parameter< T, C >::Parameter ( T value = _get_default(),
std::shared_ptr< const Limits< T > > limits = nullptr,
const std::shared_ptr< const Transform< T > > transform = nullptr,
std::shared_ptr< const Unit > unit = nullptr,
bool fixed = false,
std::string label = "" )
inline

Initialize a Parameter.

Parameters
valueThe initial untransformed value.
limitsThe untransformed value limits.
transformThe transformation to apply to values.
unitThe unit of the untransformed value.
fixedWhether the parameter is fixed in models.
labelA descriptive label for the parameter.

Definition at line 343 of file parameter.h.

346 : ParameterBase<T>() {
347 set_limits(limits);
348 _value = value;
349 set_transform(transform == nullptr ? nullptr : std::move(transform));
350 set_unit(unit);
351 set_fixed(fixed);
352 set_label(label);
353 }
T _value
The untransformed value.
Definition parameter.h:200
void set_transform(const std::shared_ptr< const Transform< T > > transform) override
Set the transforming function for this parameter instance.
Definition parameter.h:283
void set_label(std::string label) override
Set the string label for this parameter instance.
Definition parameter.h:265
void set_limits(std::shared_ptr< const Limits< T > > limits) override
Set the limits for this parameter instance.
Definition parameter.h:266
void set_unit(std::shared_ptr< const Unit > unit=nullptr) override
Set the unit for this parameter instance.
Definition parameter.h:308
void set_fixed(bool fixed) override
Set the parameter to be fixed (or not).
Definition parameter.h:263
T move(T... args)
STL namespace.

◆ ~Parameter()

template<typename T , class C >
lsst::modelfit::parameters::Parameter< T, C >::~Parameter ( )
inline

Definition at line 354 of file parameter.h.

354{};

Member Function Documentation

◆ _get_default()

template<typename T , class C >
static constexpr T lsst::modelfit::parameters::Parameter< T, C >::_get_default ( )
inlinestaticconstexpr

Get the default value for the derived type of this.

Definition at line 212 of file parameter.h.

212{ return C::_default; }

◆ _get_desc()

template<typename T , class C >
static const std::string lsst::modelfit::parameters::Parameter< T, C >::_get_desc ( )
inlinestaticprotected

Definition at line 204 of file parameter.h.

204{ return C::_desc; }

◆ _get_linear()

template<typename T , class C >
static constexpr bool lsst::modelfit::parameters::Parameter< T, C >::_get_linear ( )
inlinestaticconstexprprotected

Definition at line 205 of file parameter.h.

205{ return C::_linear; }

◆ _get_max()

template<typename T , class C >
static constexpr T lsst::modelfit::parameters::Parameter< T, C >::_get_max ( )
inlinestaticconstexprprotected

Definition at line 207 of file parameter.h.

207{ return C::_max; }

◆ _get_min()

template<typename T , class C >
static constexpr T lsst::modelfit::parameters::Parameter< T, C >::_get_min ( )
inlinestaticconstexprprotected

Definition at line 206 of file parameter.h.

206{ return C::_min; }

◆ _get_name()

template<typename T , class C >
static const std::string lsst::modelfit::parameters::Parameter< T, C >::_get_name ( )
inlinestaticprotected

Definition at line 208 of file parameter.h.

208{ return C::_name; }

◆ get_default()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_default ( ) const
inlineoverridevirtual

Get the default value.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 216 of file parameter.h.

216{ return _get_default(); }
static constexpr T _get_default()
Get the default value for the derived type of this.
Definition parameter.h:212

◆ get_desc()

template<typename T , class C >
std::string lsst::modelfit::parameters::Parameter< T, C >::get_desc ( ) const
inlineoverridevirtual

Get a string description for this parameter class.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 214 of file parameter.h.

214{ return _get_desc(); }
static const std::string _get_desc()
Definition parameter.h:204

◆ get_fixed()

template<typename T , class C >
bool lsst::modelfit::parameters::Parameter< T, C >::get_fixed ( ) const
inlineoverridevirtual

Return whether the parameter is fixed (not free).

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 218 of file parameter.h.

218{ return !_free; }

◆ get_free()

template<typename T , class C >
bool lsst::modelfit::parameters::Parameter< T, C >::get_free ( ) const
inlineoverridevirtual

Return whether the parameter is free (not fixed).

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 220 of file parameter.h.

220{ return _free; }

◆ get_label()

template<typename T , class C >
std::string lsst::modelfit::parameters::Parameter< T, C >::get_label ( ) const
inlineoverridevirtual

Return a string label for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 222 of file parameter.h.

222{ return _label; }

◆ get_limits()

template<typename T , class C >
const Limits< T > & lsst::modelfit::parameters::Parameter< T, C >::get_limits ( ) const
inlineoverridevirtual

Return the limits for the untransformed value.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 230 of file parameter.h.

230{ return _limiter->limits; }

◆ get_limits_maximal()

template<typename T , class C >
const Limits< T > & lsst::modelfit::parameters::Parameter< T, C >::get_limits_maximal ( ) const
inlineoverridevirtual

Return limits representing the maximum/minimum untransformed value.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 224 of file parameter.h.

224 {
225 static const Limits<T> limits_maximal
226 = Limits<T>(_get_min(), _get_max(), std::string(type_name<C>()) + ".limits_maximal");
227 return limits_maximal;
228 }

◆ get_linear()

template<typename T , class C >
bool lsst::modelfit::parameters::Parameter< T, C >::get_linear ( ) const
inlineoverridevirtual

Return whether the parameter is linear.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 232 of file parameter.h.

232{ return _get_linear(); }
static constexpr bool _get_linear()
Definition parameter.h:205

◆ get_max()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_max ( ) const
inlineoverridevirtual

Return the maximum value for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 236 of file parameter.h.

236{ return _get_max(); }

◆ get_min()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_min ( ) const
inlineoverridevirtual

Return the minimum value for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 234 of file parameter.h.

234{ return _get_min(); }

◆ get_name()

template<typename T , class C >
std::string lsst::modelfit::parameters::Parameter< T, C >::get_name ( ) const
inlineoverridevirtual

Get a string name for this parameter class.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 238 of file parameter.h.

238{ return _get_name(); }
static const std::string _get_name()
Definition parameter.h:208

◆ get_transform()

template<typename T , class C >
const Transform< T > & lsst::modelfit::parameters::Parameter< T, C >::get_transform ( ) const
inlineoverridevirtual

Return the transforming function for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 240 of file parameter.h.

240{ return _transformer->transform; }

◆ get_transform_derivative()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_transform_derivative ( ) const
inlineoverridevirtual

Return the derivative of the transform for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 244 of file parameter.h.

244 {
245 return this->get_transform().derivative(this->get_value());
246 }
T get_value() const override
Return the untransformed value of this parameter instance.
Definition parameter.h:256
const Transform< T > & get_transform() const override
Return the transforming function for this parameter instance.
Definition parameter.h:240

◆ get_transform_ptr()

template<typename T , class C >
std::shared_ptr< const Transform< T > > lsst::modelfit::parameters::Parameter< T, C >::get_transform_ptr ( ) const
inlineoverridevirtual

Return the transform pointer for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 242 of file parameter.h.

242{ return _transform_ptr; }

◆ get_type_name()

template<typename T , class C >
static const std::string lsst::modelfit::parameters::Parameter< T, C >::get_type_name ( bool strip_namespace_separator = false,
const std::string_view & namespace_separator = detail::NAMESPACE_SEPARATOR )
inlinestatic

Get the name of the derived type of this.

Definition at line 248 of file parameter.h.

250 {
251 return type_name_str<C>(strip_namespace_separator, namespace_separator);
252 }

◆ get_unit()

template<typename T , class C >
const Unit & lsst::modelfit::parameters::Parameter< T, C >::get_unit ( ) const
inlineoverridevirtual

Return the unit of this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 254 of file parameter.h.

254{ return *_unit_ptr; }

◆ get_value()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_value ( ) const
inlineoverridevirtual

Return the untransformed value of this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 256 of file parameter.h.

256{ return _value; }

◆ get_value_transformed()

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::get_value_transformed ( ) const
inlineoverridevirtual

Return the transformed value of this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 258 of file parameter.h.

258{ return _value_transformed; }
T _value_transformed
The cached, transformed value.
Definition parameter.h:202

◆ ptr()

template<typename T , class C >
std::shared_ptr< C > lsst::modelfit::parameters::Parameter< T, C >::ptr ( )
inline

Return a shared pointer to this.

Definition at line 261 of file parameter.h.

261{ return this->shared_from_this(); }

◆ repr()

template<typename T , class C >
std::string lsst::modelfit::parameters::Parameter< T, C >::repr ( bool name_keywords = false,
const std::string_view & namespace_separator = Object::CC_NAMESPACE_SEPARATOR ) const
inlineoverridevirtual

Return a full, callable string representation of this.

Parameters
name_keywordsWhether to prefix arguments with "{name}=", where name is the arg name in the header (as with keyword arguments in Python).
namespace_separatorThe string to use to delimit namespaces, i.e. :: in C++ and . in Python.
Returns
A callable string representation of this, which should return an an identical object to this.
Note
The representation with name_keywords=false must be callable in C++. The representation with name_keywords=true should be callable in Python, if there are any bindings.

Implements lsst::modelfit::parameters::Object.

Definition at line 312 of file parameter.h.

313 {
314 return get_type_name(false, namespace_separator) + "(" + (name_keywords ? "value=" : "")
315 + std::to_string(_value) + ", " + (name_keywords ? "limits=" : "") + get_limits().repr() + ", "
316 + (name_keywords ? "transform=" : "") + get_transform().repr() + ", "
317 + (name_keywords ? "fixed=" : "") + std::to_string(0 + get_fixed()) + ", "
318 + (name_keywords ? "label='" : "'") + _label + "')";
319 }
bool get_fixed() const override
Return whether the parameter is fixed (not free).
Definition parameter.h:218
static const std::string get_type_name(bool strip_namespace_separator=false, const std::string_view &namespace_separator=detail::NAMESPACE_SEPARATOR)
Get the name of the derived type of this.
Definition parameter.h:248
const Limits< T > & get_limits() const override
Return the limits for the untransformed value.
Definition parameter.h:230
T to_string(T... args)

◆ set_fixed()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_fixed ( bool fixed)
inlineoverridevirtual

Set the parameter to be fixed (or not).

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 263 of file parameter.h.

263{ set_free(!fixed); }
void set_free(bool free) override
Set the parameter to be free (or not).
Definition parameter.h:264

◆ set_free()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_free ( bool free)
inlineoverridevirtual

Set the parameter to be free (or not).

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 264 of file parameter.h.

264{ _free = free; }
T free(T... args)

◆ set_label()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_label ( std::string label)
inlineoverridevirtual

Set the string label for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 265 of file parameter.h.

265{ _label = std::move(label); }

◆ set_limits()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_limits ( std::shared_ptr< const Limits< T > > limits)
inlineoverridevirtual

Set the limits for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 266 of file parameter.h.

266 {
267 // TODO: Fix bad_alloc when calling this without &
268 // Disable copy constructor explicitly maybe?
269 const auto& limits_maximal = this->get_limits_maximal();
270 if (limits == nullptr) {
271 _limiter = std::make_unique<Limiter>(limits_maximal);
272 } else {
273 if (!((limits->get_min() >= this->get_min()) && (limits->get_max() <= this->get_max()))) {
274 std::string error = get_type_name() + ".set_limits(" + limits->str()
275 + ") sets limits that are less restrictive than the minimum="
276 + limits_maximal.str();
277 throw std::runtime_error(error);
278 }
279 _limits_ptr = std::move(limits);
280 _limiter = std::make_unique<Limiter>(*_limits_ptr);
281 }
282 }
const Limits< T > & get_limits_maximal() const override
Return limits representing the maximum/minimum untransformed value.
Definition parameter.h:224

◆ set_transform()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_transform ( const std::shared_ptr< const Transform< T > > transform)
inlineoverridevirtual

Set the transforming function for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 283 of file parameter.h.

283 {
284 if (transform == nullptr) {
285 // TODO: determine why passing transform_none as arg here returns:
286 // error: modification of '<temporary>' is not a constant expression
287 // whereas get_transform_unit<T>() results in a segfault
288 // (iff Transform has a virtual destructor)
289 _transformer = std::make_unique<Transformer>(this->transform_none());
290 } else {
291 _transform_ptr = std::move(transform);
292 _transformer = std::make_unique<Transformer>(*_transform_ptr);
293 }
294 _value_transformed = _transformer->transform.forward(_value);
295 }
static const UnitTransform< T > & transform_none()
Definition parameter.h:111

◆ set_unit()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_unit ( std::shared_ptr< const Unit > unit = nullptr)
inlineoverridevirtual

Set the unit for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 308 of file parameter.h.

308 {
309 _unit_ptr = unit == nullptr ? nullptr : std::move(unit);
310 }

◆ set_value()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_value ( T value)
inlineoverridevirtual

Set the untransformed value for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 297 of file parameter.h.

297 {
298 _set_value(value);
299 double value_new = this->get_value();
300 _value_transformed = _transformer->transform.forward(value_new);
301 };

◆ set_value_transformed()

template<typename T , class C >
void lsst::modelfit::parameters::Parameter< T, C >::set_value_transformed ( T value_transformed)
inlineoverridevirtual

Set the transformed value for this parameter instance.

Implements lsst::modelfit::parameters::ParameterBase< T >.

Definition at line 303 of file parameter.h.

303 {
304 _set_value(_transformer->transform.reverse(value_transformed));
305 _value_transformed = _transformer->transform.forward(this->get_value());
306 }

◆ str()

template<typename T , class C >
std::string lsst::modelfit::parameters::Parameter< T, C >::str ( ) const
inlineoverridevirtual

Return a brief, human-readable string representation of this.

Implements lsst::modelfit::parameters::Object.

Definition at line 321 of file parameter.h.

321 {
322 return get_type_name(true) + "(value=" + std::to_string(_value)
323 + ", "
324 // TODO: Implement equality operators for limits/transforms
325 + ((&get_limits() == &get_limits_maximal()) ? "" : ("limits=" + get_limits().repr() + ", "))
326 + ((&get_transform() == &(this->transform_none()))
327 ? ""
328 : ("transform=" + get_transform().repr() + ", "))
329 + (!get_fixed() ? "" : (std::string("fixed=") + std::to_string(0 + get_fixed()) + ", "))
330 + ((get_label() == "") ? "" : ("label='" + get_label() + "'")) + ")";
331 }
std::string get_label() const override
Return a string label for this parameter instance.
Definition parameter.h:222
std::string repr(bool name_keywords=false, const std::string_view &namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override
Return a full, callable string representation of this.
Definition parameter.h:312

◆ transform_none()

template<typename T >
static const UnitTransform< T > & lsst::modelfit::parameters::ParameterBase< T >::transform_none ( )
inlinestaticinherited

Definition at line 111 of file parameter.h.

111{ return UnitTransform<T>::get(); };
static const UnitTransform< T > & get()
Definition transform.h:64

Member Data Documentation

◆ _value

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::_value
protected

The untransformed value.

Definition at line 200 of file parameter.h.

◆ _value_transformed

template<typename T , class C >
T lsst::modelfit::parameters::Parameter< T, C >::_value_transformed
protected

The cached, transformed value.

Definition at line 202 of file parameter.h.

◆ CC_NAMESPACE_SEPARATOR

constexpr std::string_view lsst::modelfit::parameters::Object::CC_NAMESPACE_SEPARATOR = "::"
staticconstexprinherited

The C++ namespace separator.

Definition at line 42 of file object.h.


The documentation for this class was generated from the following file: