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

#include "function.h"
#include "data.h"

6 7
#include <QtPlugin>

8 9 10 11
/*
 * Fitting interface for generic fitting algorithms
 *
 */
12
class fitter
13 14 15 16 17 18 19
{
	public:
		
		// Static function to fit a data set d with the
		// underling function class. Return the best
		// fit (along with fitting information ?)
		//
20
		virtual bool fit_data(const data* d, function*& f) = 0 ;
21 22

} ;
23 24

Q_DECLARE_INTERFACE(fitter, "Fitter.Fitter")