Logo ROOT   6.18/05
Reference Guide
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TF1Parameters Class Reference

TF1 Parameters class.

Definition at line 48 of file TF1.h.

Public Member Functions

 TF1Parameters ()
 
 TF1Parameters (const TF1Parameters &rhs)
 
 TF1Parameters (Int_t npar)
 
virtual ~TF1Parameters ()
 
Double_t GetParameter (const char *name) const
 
Double_t GetParameter (Int_t iparam) const
 
const Double_tGetParameters () const
 
const char * GetParName (Int_t iparam) const
 
Int_t GetParNumber (const char *name) const
 Returns the parameter number given a name not very efficient but list of parameters is typically small could use a map if needed. More...
 
TF1Parametersoperator= (const TF1Parameters &rhs)
 
const std::vector< double > & ParamsVec () const
 
void SetParameter (const char *name, Double_t value)
 
void SetParameter (Int_t iparam, Double_t value)
 
void SetParameters (const Double_t *params)
 
void SetParameters (Double_t p0, Double_t p1, Double_t p2=0, Double_t p3=0, Double_t p4=0, Double_t p5=0, Double_t p6=0, Double_t p7=0, Double_t p8=0, Double_t p9=0, Double_t p10=0)
 Set parameter values. More...
 
void SetParName (Int_t iparam, const char *name)
 
void SetParNames (const char *name0="p0", const char *name1="p1", const char *name2="p2", const char *name3="p3", const char *name4="p4", const char *name5="p5", const char *name6="p6", const char *name7="p7", const char *name8="p8", const char *name9="p9", const char *name10="p10")
 Set parameter names. More...
 

Private Member Functions

bool CheckIndex (Int_t i) const
 

Private Attributes

std::vector< Double_tfParameters
 
std::vector< std::string > fParNames
 

#include <TF1.h>

Constructor & Destructor Documentation

◆ TF1Parameters() [1/3]

TF1Parameters::TF1Parameters ( )
inline

Definition at line 50 of file TF1.h.

◆ TF1Parameters() [2/3]

TF1Parameters::TF1Parameters ( Int_t  npar)
inline

Definition at line 51 of file TF1.h.

◆ TF1Parameters() [3/3]

TF1Parameters::TF1Parameters ( const TF1Parameters rhs)
inline

Definition at line 60 of file TF1.h.

◆ ~TF1Parameters()

virtual TF1Parameters::~TF1Parameters ( )
inlinevirtual

Definition at line 72 of file TF1.h.

Member Function Documentation

◆ CheckIndex()

bool TF1Parameters::CheckIndex ( Int_t  i) const
inlineprivate

Definition at line 133 of file TF1.h.

◆ GetParameter() [1/2]

Double_t TF1Parameters::GetParameter ( const char *  name) const
inline

Definition at line 79 of file TF1.h.

◆ GetParameter() [2/2]

Double_t TF1Parameters::GetParameter ( Int_t  iparam) const
inline

Definition at line 75 of file TF1.h.

◆ GetParameters()

const Double_t * TF1Parameters::GetParameters ( ) const
inline

Definition at line 83 of file TF1.h.

◆ GetParName()

const char * TF1Parameters::GetParName ( Int_t  iparam) const
inline

Definition at line 94 of file TF1.h.

◆ GetParNumber()

Int_t TF1Parameters::GetParNumber ( const char *  name) const

Returns the parameter number given a name not very efficient but list of parameters is typically small could use a map if needed.

Definition at line 3813 of file TF1.cxx.

◆ operator=()

TF1Parameters & TF1Parameters::operator= ( const TF1Parameters rhs)
inline

Definition at line 65 of file TF1.h.

◆ ParamsVec()

const std::vector< double > & TF1Parameters::ParamsVec ( ) const
inline

Definition at line 87 of file TF1.h.

◆ SetParameter() [1/2]

void TF1Parameters::SetParameter ( const char *  name,
Double_t  value 
)
inline

Definition at line 114 of file TF1.h.

◆ SetParameter() [2/2]

void TF1Parameters::SetParameter ( Int_t  iparam,
Double_t  value 
)
inline

Definition at line 101 of file TF1.h.

◆ SetParameters() [1/2]

void TF1Parameters::SetParameters ( const Double_t params)
inline

Definition at line 106 of file TF1.h.

◆ SetParameters() [2/2]

void TF1Parameters::SetParameters ( Double_t  p0,
Double_t  p1,
Double_t  p2 = 0,
Double_t  p3 = 0,
Double_t  p4 = 0,
Double_t  p5 = 0,
Double_t  p6 = 0,
Double_t  p7 = 0,
Double_t  p8 = 0,
Double_t  p9 = 0,
Double_t  p10 = 0 
)

Set parameter values.

Definition at line 3824 of file TF1.cxx.

◆ SetParName()

void TF1Parameters::SetParName ( Int_t  iparam,
const char *  name 
)
inline

Definition at line 118 of file TF1.h.

◆ SetParNames()

void TF1Parameters::SetParNames ( const char *  name0 = "p0",
const char *  name1 = "p1",
const char *  name2 = "p2",
const char *  name3 = "p3",
const char *  name4 = "p4",
const char *  name5 = "p5",
const char *  name6 = "p6",
const char *  name7 = "p7",
const char *  name8 = "p8",
const char *  name9 = "p9",
const char *  name10 = "p10" 
)

Set parameter names.

Definition at line 3845 of file TF1.cxx.

Member Data Documentation

◆ fParameters

std::vector<Double_t> TF1Parameters::fParameters
private

Definition at line 138 of file TF1.h.

◆ fParNames

std::vector<std::string> TF1Parameters::fParNames
private

Definition at line 139 of file TF1.h.

Libraries for TF1Parameters:
[legend]

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