lsst.gauss2d.fit g199a45376c+5e234f8357
 
Loading...
Searching...
No Matches
lsst::gauss2d::fit::Data< T, I, M > Class Template Reference

A list of Observation instances that can be modelled. More...

#include <data.h>

Inheritance diagram for lsst::gauss2d::fit::Data< T, I, M >:
lsst::gauss2d::fit::Chromatic lsst::gauss2d::fit::Parametric

Public Types

using Observation = lsst::gauss2d::fit::Observation<T, I, M>
 
using ObservationCRef = std::reference_wrapper<const Observation>
 

Public Member Functions

 Data (std::vector< std::shared_ptr< const Observation > > observations)
 
auto at (size_t i) const
 
auto begin () const
 
auto end () const
 
auto cbegin () const
 
auto cend () const
 
std::vector< std::reference_wrapper< const Channel > > get_channels () const override
 Get the set of channels this instance is applicable for.
 
ParamRefs & get_parameters (ParamRefs &params, ParamFilter *filter=nullptr) const override
 
ParamCRefs & get_parameters_const (ParamCRefs &params, ParamFilter *filter=nullptr) const override
 Same as get_parameters(), but for const refs.
 
size_t size () const
 Get the number of member Observation.
 
std::string repr (bool name_keywords=false, std::string_view namespace_separator=Object::CC_NAMESPACE_SEPARATOR) const override
 
std::string str () const override
 
- Public Member Functions inherited from lsst::gauss2d::fit::Parametric
ParamRefs get_parameters_new (ParamFilter *filter=nullptr) const
 Same as get_parameters(), but returning a new vector.
 
ParamCRefs get_parameters_const_new (ParamFilter *filter=nullptr) const
 Same as get_parameters_const(), but returning a new vector.
 

Detailed Description

template<typename T, typename I, typename M>
class lsst::gauss2d::fit::Data< T, I, M >

A list of Observation instances that can be modelled.

A Data is a list of Observation instances that can have associated Model instances. Multiple Observation instances may have the same Channel, but one should not include the same Observation multiple time.

Template Parameters
TThe type of the Observation Image (usually float or double)
IThe type of the Observation indices (usually size_t)
MThe type of the Observation Mask (usually bool)

Constructor & Destructor Documentation

◆ Data()

template<typename T, typename I, typename M>
lsst::gauss2d::fit::Data< T, I, M >::Data ( std::vector< std::shared_ptr< const Observation > > observations)
inlineexplicit

Construct a Data instance

Parameters
observationsThe Observation pointers to include. Must not be null.

Member Function Documentation

◆ get_channels()

template<typename T, typename I, typename M>
std::vector< std::reference_wrapper< const Channel > > lsst::gauss2d::fit::Data< T, I, M >::get_channels ( ) const
inlineoverridevirtual

Get the set of channels this instance is applicable for.

Note
Implementers must return a set (all unique items). This cannot be enforced (yet).

Implements lsst::gauss2d::fit::Chromatic.

◆ get_parameters()

template<typename T, typename I, typename M>
ParamRefs & lsst::gauss2d::fit::Data< T, I, M >::get_parameters ( ParamRefs & params,
ParamFilter * filter = nullptr ) const
inlineoverridevirtual

Add Parameter refs matching the filter to a vector, in order.

Parameters
paramsThe vector to add to.
filterThe filter to apply to this Object's parameters.
Returns
A ref to params (for method chaining)

Implements lsst::gauss2d::fit::Parametric.

◆ get_parameters_const()

template<typename T, typename I, typename M>
ParamCRefs & lsst::gauss2d::fit::Data< T, I, M >::get_parameters_const ( ParamCRefs & params,
ParamFilter * filter = nullptr ) const
inlineoverridevirtual

Same as get_parameters(), but for const refs.

Implements lsst::gauss2d::fit::Parametric.


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