SourceXtractorPlusPlus  0.10
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ResidualEstimator.h
Go to the documentation of this file.
1 
23 #ifndef MODELFITTING_RESIDUALESTIMATOR_H
24 #define MODELFITTING_RESIDUALESTIMATOR_H
25 
26 #include <vector>
27 #include <memory>
28 #include <algorithm>
30 
31 namespace ModelFitting {
32 
51 
52 public:
53 
55  virtual ~ResidualEstimator();
56 
59 
63 
69  template <typename DoubleIter>
70  void populateResiduals(DoubleIter output_iter) const;
71 
74  void populateResiduals(double* output_iter) const;
75 
78  void populateResiduals(std::vector<double>::iterator output_iter) const;
79 
80 private:
81 
84 
85 };
86 
87 } // end of namespace ModelFitting
88 
90 
91 #endif /* MODELFITTING_RESIDUALESTIMATOR_H */
92 
std::vector< std::unique_ptr< ResidualBlockProvider > > m_block_provider_list
void populateResiduals(DoubleIter output_iter) const
virtual ~ResidualEstimator()
Destructor.
void registerBlockProvider(std::unique_ptr< ResidualBlockProvider > provider)
Registers a ResidualBlockProvider to the ResidualEstimator.
std::size_t numberOfResiduals() const
STL class.
STL class.
Provides to the LeastSquareEngine the residual values.