Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TF1Parameters Class Reference

TF1 Parameters class.

Definition at line 53 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.
 
virtual TClassIsA () const
 
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)
 
template<typename... Args>
void SetParameters (Double_t arg1, Args &&... args)
 Set parameter values.
 
void SetParName (Int_t iparam, const char *name)
 
template<typename... Args>
void SetParNames (Args &&... args)
 Set parameter names.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

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 55 of file TF1.h.

◆ TF1Parameters() [2/3]

TF1Parameters::TF1Parameters ( Int_t  npar)
inline

Definition at line 56 of file TF1.h.

◆ TF1Parameters() [3/3]

TF1Parameters::TF1Parameters ( const TF1Parameters rhs)
inline

Definition at line 65 of file TF1.h.

◆ ~TF1Parameters()

virtual TF1Parameters::~TF1Parameters ( )
inlinevirtual

Definition at line 77 of file TF1.h.

Member Function Documentation

◆ CheckIndex()

bool TF1Parameters::CheckIndex ( Int_t  i) const
inlineprivate

Definition at line 133 of file TF1.h.

◆ Class()

static TClass * TF1Parameters::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TF1Parameters::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TF1Parameters::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 130 of file TF1.h.

◆ DeclFileName()

static const char * TF1Parameters::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 130 of file TF1.h.

◆ GetParameter() [1/2]

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

Definition at line 84 of file TF1.h.

◆ GetParameter() [2/2]

Double_t TF1Parameters::GetParameter ( Int_t  iparam) const
inline

Definition at line 80 of file TF1.h.

◆ GetParameters()

const Double_t * TF1Parameters::GetParameters ( ) const
inline

Definition at line 88 of file TF1.h.

◆ GetParName()

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

Definition at line 99 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 3846 of file TF1.cxx.

◆ IsA()

virtual TClass * TF1Parameters::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 130 of file TF1.h.

◆ operator=()

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

Definition at line 70 of file TF1.h.

◆ ParamsVec()

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

Definition at line 92 of file TF1.h.

◆ SetParameter() [1/2]

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

Definition at line 118 of file TF1.h.

◆ SetParameter() [2/2]

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

Definition at line 106 of file TF1.h.

◆ SetParameters() [1/2]

void TF1Parameters::SetParameters ( const Double_t params)
inline

Definition at line 111 of file TF1.h.

◆ SetParameters() [2/2]

template<typename... Args>
void TF1Parameters::SetParameters ( Double_t  arg1,
Args &&...  args 
)

Set parameter values.

NaN values will be skipped, meaning that the corresponding parameters will not be changed.

Definition at line 145 of file TF1.h.

◆ SetParName()

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

Definition at line 122 of file TF1.h.

◆ SetParNames()

template<typename... Args>
void TF1Parameters::SetParNames ( Args &&...  args)

Set parameter names.

Empty strings will be skipped, meaning that the corresponding name will not be changed.

Definition at line 156 of file TF1.h.

◆ Streamer()

virtual void TF1Parameters::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TF1Parameters::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 130 of file TF1.h.

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:

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