fitter.h 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/* ALTA --- Analysis of Bidirectional Reflectance Distribution Functions

   Copyright (C) 2013, 2014 Inria

   This file is part of ALTA.

   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0.  If a copy of the MPL was not distributed with this
   file, You can obtain one at http://mozilla.org/MPL/2.0/.  */

11 12 13 14
#pragma once

#include "function.h"
#include "data.h"
15
#include "args.h"
16
#include "common.h"
17

18 19
namespace alta {

20 21
/*! \brief Fitting interface for generic fitting algorithms
 *  \ingroup core
22
 *
23
 *  \details
24
 */
25
class fitter
26 27 28
{
	public:

29 30 31
		// Virtual destructor
		virtual ~fitter() {}

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

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

42 43
};
}