BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
The chi2 function for use in minimizers.
Definition at line 36 of file RootScalarFunction.h.
Public Types | |
typedef T | BackendType |
typedef IBaseFunctionMultiDimTempl< T > | BaseFunc |
typedef FunctorImpl< IBaseFunctionMultiDim > | Impl |
typedef IBaseFunctionMultiDim::BaseFunc | ImplBase |
Public Member Functions | |
RootScalarFunction (root_scalar_t fcn, int ndims) | |
ImplBase * | Clone () const |
unsigned int | NDim () const |
T | operator() (const T *x) const |
Private Member Functions | |
double | DoEval (const double *x) const |
Private Attributes | |
std::unique_ptr< Impl > | fImpl |
|
inherited |
Definition at line 66 of file IFunction.h.
|
inherited |
Definition at line 67 of file IFunction.h.
|
inherited |
|
inherited |
RootScalarFunction::RootScalarFunction | ( | root_scalar_t | fcn, |
int | ndims | ||
) |
Definition at line 17 of file RootScalarFunction.cpp.
|
inlinevirtualinherited |
Clone a function. Each derived class must implement their version of the Clone method
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.
Definition at line 454 of file Functor.h.
References ROOT::Math::Functor::Functor().
|
inlineprivateinherited |
|
inlinevirtualinherited |
Retrieve the dimension of the function
Implements ROOT::Math::IBaseFunctionMultiDimTempl< T >.
Definition at line 457 of file Functor.h.
References ROOT::Math::Functor::fImpl.
|
inlineinherited |
Evaluate the function at a point x[]. Use the pure virtual private method DoEval which must be implemented by the sub-classes
Definition at line 92 of file IFunction.h.
References ROOT::Math::IBaseFunctionMultiDimTempl< T >::DoEval().
Referenced by ROOT::Math::IGradientFunctionMultiDimTempl< T >::FdF().
|
privateinherited |
Definition at line 467 of file Functor.h.
Referenced by ROOT::Math::Functor::Functor(), ROOT::Math::Functor::DoEval(), ROOT::Math::Functor::NDim(), and ROOT::Math::Functor::operator=().