+
class ROOT::Math::ParamFunction
-
library: libMathMore
#include "ParamFunction.h"
Display options:
Show inherited
Show non-public

class ROOT::Math::ParamFunction: public ROOT::Math::IParametricGradFunction<ROOT::Math::OneDim>

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~ParamFunction()
const vector<double>&GetParGradient(double x)
virtual unsigned intNPar() const
ROOT::Math::ParamFunction&operator=(const ROOT::Math::ParamFunction&)
virtual const double*Parameters() const
boolProvidesParameterGradient() const
virtual voidSetParameters(const double* p)

Data Members

protected:
vector<double>fParGradient
vector<double>fParams
private:
unsigned intfNpar
boolfProvGrad
boolfProvParGrad

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

virtual ~ParamFunction()
 destructor
{}
const double * Parameters()
 cloning

Deep copy of function (to be implemented by the derived classes)

virtual ParamFunction *  Clone() const = 0;

Access the parameter values

{ return &fParams.front(); }
void SetParameters(const double* p)
Set the parameter values
@param p vector of doubles containing the parameter values.

fParams = std::vector<double>(p,p+fNpar);
unsigned int NPar()
Return the number of parameters

{ return fNpar; }
bool ProvidesParameterGradient()
using BaseFunc::operator();

Return \a true if the calculation of derivatives is implemented

bool ProvidesGradient() const {  return fProvGrad; }

Return \a true if the calculation of derivatives with respect to the Parameters is implemented

{ return fProvParGrad; }
const std::vector<double> & GetParGradient(double x)

Last update: Mon Jun 25 19:40:01 2007

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.