Logo ROOT  
Reference Guide
ROOT::Fit::FcnAdapter Class Reference

Definition at line 27 of file FcnAdapter.h.

Public Member Functions

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

Private Member Functions

double DoEval (const double *x) const override

Private Attributes

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

Additional Inherited Members

- Public Types inherited from ROOT::Math::IBaseFunctionMultiDimTempl< T >
typedef T BackendType
typedef IBaseFunctionMultiDimTempl< T > BaseFunc

#include <Fit/FcnAdapter.h>

Inheritance diagram for ROOT::Fit::FcnAdapter:

Constructor & Destructor Documentation

◆ FcnAdapter()

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

Definition at line 31 of file FcnAdapter.h.

◆ ~FcnAdapter()

ROOT::Fit::FcnAdapter::~FcnAdapter ( )

Definition at line 36 of file FcnAdapter.h.

Member Function Documentation

◆ Clone()

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

Clone a function.

Each derived class must implement their version of the Clone method

Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.

Definition at line 40 of file FcnAdapter.h.

◆ DoEval()

double ROOT::Fit::FcnAdapter::DoEval ( const double x) const

Definition at line 48 of file FcnAdapter.h.

◆ NDim()

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

Retrieve the dimension of the function.

Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.

Definition at line 38 of file FcnAdapter.h.

◆ SetDimension()

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

Definition at line 44 of file FcnAdapter.h.

Member Data Documentation

◆ fDim

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

Definition at line 58 of file FcnAdapter.h.

◆ fFCN

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

Definition at line 59 of file FcnAdapter.h.

Libraries for ROOT::Fit::FcnAdapter:

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