Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
unsigned int NDim () const override
 Retrieve the dimension of the function.
 
void SetDimension (int dim)
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDimTempl< T >
virtual ~IBaseFunctionMultiDimTempl ()=default
 
virtual bool HasGradient () const
 
operator() (const T *x) const
 Evaluate the function at a point x[].
 

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:
[legend]

Constructor & Destructor Documentation

◆ FcnAdapter()

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

Definition at line 31 of file FcnAdapter.h.

◆ ~FcnAdapter()

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

Definition at line 36 of file FcnAdapter.h.

Member Function Documentation

◆ Clone()

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

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
inlineoverrideprivate

Definition at line 48 of file FcnAdapter.h.

◆ NDim()

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

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)
inline

Definition at line 44 of file FcnAdapter.h.

Member Data Documentation

◆ fDim

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

Definition at line 58 of file FcnAdapter.h.

◆ fFCN

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

Definition at line 59 of file FcnAdapter.h.

Libraries for ROOT::Fit::FcnAdapter:

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