Logo ROOT   6.07/09
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ROOT::Fit::FcnAdapter Class Reference

Definition at line 29 of file FcnAdapter.h.

Public Member Functions

 FcnAdapter (void(*fcn)(int &, double *, double &, double *, int), int dim=0)
 
virtual ~FcnAdapter ()
 
ROOT::Math::IMultiGenFunctionClone () const
 Clone a function. More...
 
virtual unsigned int NDim () const
 Retrieve the dimension of the function. More...
 
void SetDimension (int dim)
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDim
 IBaseFunctionMultiDim ()
 
virtual ~IBaseFunctionMultiDim ()
 virtual destructor More...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. More...
 

Private Member Functions

virtual double DoEval (const double *x) const
 Implementation of the evaluation function. More...
 

Private Attributes

unsigned int fDim
 
void(* fFCN )(int &, double *, double &, double *, int)
 

Additional Inherited Members

- Public Types inherited from ROOT::Math::IBaseFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 

#include <Fit/FcnAdapter.h>

Inheritance diagram for ROOT::Fit::FcnAdapter:
[legend]

Constructor & Destructor Documentation

ROOT::Fit::FcnAdapter::FcnAdapter ( void(*)(int &, double *, double &, double *, int)  fcn,
int  dim = 0 
)
inline

Definition at line 33 of file FcnAdapter.h.

virtual ROOT::Fit::FcnAdapter::~FcnAdapter ( )
inlinevirtual

Definition at line 38 of file FcnAdapter.h.

Member Function Documentation

ROOT::Math::IMultiGenFunction* ROOT::Fit::FcnAdapter::Clone ( ) const
inlinevirtual

Clone a function.

Each derived class must implement their version of the Clone method

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 42 of file FcnAdapter.h.

virtual double ROOT::Fit::FcnAdapter::DoEval ( const double *  x) const
inlineprivatevirtual

Implementation of the evaluation function.

Must be implemented by derived classes

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 50 of file FcnAdapter.h.

virtual unsigned int ROOT::Fit::FcnAdapter::NDim ( ) const
inlinevirtual

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDim.

Definition at line 40 of file FcnAdapter.h.

void ROOT::Fit::FcnAdapter::SetDimension ( int  dim)
inline

Definition at line 46 of file FcnAdapter.h.

Member Data Documentation

unsigned int ROOT::Fit::FcnAdapter::fDim
private

Definition at line 60 of file FcnAdapter.h.

void(* ROOT::Fit::FcnAdapter::fFCN) (int &, double *, double &, double *, int)
private

Definition at line 61 of file FcnAdapter.h.


The documentation for this class was generated from the following file: