fitter.h 752 Bytes
Newer Older
1 2 3 4
#pragma once

#include "function.h"
#include "data.h"
5
#include "args.h"
6
#include "common.h"
7

8 9
/*! \brief Fitting interface for generic fitting algorithms
 *  \ingroup core
10
 *
11
 *  \details
12
 */
13
class fitter
14 15 16
{
	public:

17 18 19
		// Virtual destructor
		virtual ~fitter() {}

20 21 22
		//! \brief static function to fit a data set d with the underling
		//! function class. Return the best fit (along with fitting
		//! information ?)
23
		virtual bool fit_data(const ptr<data>& d, ptr<function>& f, const arguments& args) = 0 ;
24

25 26
		//! \brief parse the command line arguments to setup some general
		//! options before any fit. Those options should be resilient to
27
		//! multiple call to the fit_data procedure
28
		virtual void set_parameters(const arguments& args) = 0 ;
Laurent Belcour's avatar
Laurent Belcour committed
29

30
} ;