BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ROOT::Math::IBaseParam Class Referenceabstract

Description

Documentation for the abstract class IBaseParam. It defines the interface for dealing with the function parameters This is used only for internal convinience, to avoid redefining the Parameter API for the one and the multi-dim functions. Concrete class should derive from ROOT::Math::IParamFunction and not from this class.

Definition at line 48 of file IParamFunction.h.

Inheritance diagram for ROOT::Math::IBaseParam:
[legend]

Public Member Functions

virtual ~IBaseParam ()
 
virtual unsigned int NPar () const =0
 
virtual std::string ParameterName (unsigned int i) const
 
virtual const double * Parameters () const =0
 
virtual void SetParameters (const double *p)=0
 

Constructor & Destructor Documentation

◆ ~IBaseParam()

virtual ROOT::Math::IBaseParam::~IBaseParam ( )
inlinevirtual

Virtual Destructor (no operations)

Definition at line 56 of file IParamFunction.h.

56 {}

Member Function Documentation

◆ NPar()

◆ ParameterName()

virtual std::string ROOT::Math::IBaseParam::ParameterName ( unsigned int  i) const
inlinevirtual

Return the name of the i-th parameter (starting from zero) Overwrite if want to avoid the default name ("Par_0, Par_1, ...")

Definition at line 83 of file IParamFunction.h.

84  {
85  assert(i < NPar());
86  return "Par_" + Util::ToString(i);
87  }
virtual unsigned int NPar() const =0
std::string ToString(const T &val)
Definition: Util.h:42

References NPar(), and ROOT::Math::Util::ToString().

Referenced by ROOT::Fit::FitConfig::CreateParamsSettings().

Here is the call graph for this function:

◆ Parameters()

◆ SetParameters()

virtual void ROOT::Math::IBaseParam::SetParameters ( const double *  p)
pure virtual

Set the parameter values

Parameters
pvector of doubles containing the parameter values.

to be defined: can user change number of params ? At the moment no.

Implemented in ROOT::Math::WrappedParamFunctionGen< FuncPtr >, and ROOT::Math::WrappedParamFunction< FuncPtr >.


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