SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ResidualBlockProvider.h
Go to the documentation of this file.
1
22
23#ifndef MODELFITTING_RESIDUALBLOCKPROVIDER_H
24#define MODELFITTING_RESIDUALBLOCKPROVIDER_H
25
26namespace ModelFitting {
27
36
37public:
38
45 using IterType = double*;
46
57 virtual std::size_t numberOfResiduals() const = 0;
58
71 virtual void populateResidualBlock(IterType output_iter) = 0;
72
74 virtual ~ResidualBlockProvider() = default;
75
76}; // end of class ResidualBlockProvider
77
78} // end of namespace ModelFitting
79
80#endif /* MODELFITTING_RESIDUALBLOCKPROVIDER_H */
81
Interface of a class which can provide a block of residuals for least square minimization solving.
virtual ~ResidualBlockProvider()=default
Destructor.
virtual void populateResidualBlock(IterType output_iter)=0
Provides the residual values.
virtual std::size_t numberOfResiduals() const =0
Returns the number of residuals provided by this provider.