| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Model objects, which reproduce component of polynomial function.
Expession can be written like:
Ampl * x^nx * y^ny * z^nz * ...
The order of polynomial function should be sets up in constructor like:
TGo4FitModelPolynom *p1 = new TGo4FitModelPolynom("Pol1",orderx,ordery,orderz);
or
TArrayD orders(5);
Orders[0] = 1.; Orders[1] = 0.; ...
TGo4FitModelPolynom *p2 = new TGo4FitModelPolynom("Pol2",Orders);
According to number of parameters in constructor TGo4FitModelPolynom has set of parameters "Order0", "Order1" and so on, representing polynom orders for axis x, y and so on correspondently. By default, these parameters are fixed and not fitted in optimizations. To change this default behavior, use:
p1->FindPar("Order0")->SetFixed(kFALSE);
TGo4FitModelPolynom class always has amplitude parameter, named "Ampl". It can be accessed by its name, for instance:
p1->FindPar("Ampl")->SetValue(1000.);
or
p1->GetAmplitudePar("Ampl")->SetValue(1000.);
GetAmplitudePar() method can be used in other models classes only if they create amplitude parameters, otherwise method returns 0.
Field Summary | |
private TArrayD* | fxAllOrders Temporary variable for EvalN() function. |
private Int_t | ndim Temporary variable for EvalN() function. |
private Double_t* | orders Temporary variable for EvalN() function. |
Fields inherited from class Go4Fit.TGo4FitModel |
fbAbsoluteEps, fbIntegrScaling, fdIntegrEps, fiMaxIntegrDepth, fiMinIntegrDepth |
Fields inherited from class TNamed |
fName, fTitle |
Fields inherited from class Go4Fit.TGo4FitSlotList |
fbUpdateSlotList, fxSlotList |
Constructor Summary | |
TGo4FitModelPolynom() Default constructor. | |
TGo4FitModelPolynom(const char * iName, Double_t iOrderX) Creates TGo4FitModelPolynom object with given name for 1-dim case. | |
TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY) Creates TGo4FitModelPolynom object with given name for 2-dim case. | |
TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY, Double_t iOrderZ) Creates TGo4FitModelPolynom object with given name for 3-dim case. | |
TGo4FitModelPolynom(const char * iName, const TArrayD& iPolynomOrders) Creates TGo4FitModelPolynom object with given name for n-dim case. |
Destructor Summary | |
virtual synchronized | ~TGo4FitModelPolynom() Destroys TGo4FitModelPolynom object. |
Method Summary | |
virtual void | AfterEval() |
virtual Bool_t | BeforeEval(Int_t NDimension) |
private void | CreateOrdersPars(const Double_t* orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx) |
virtual Double_t | EvalN(const Double_t* v) |
Int_t | GetMaxNumAxis() Returns maximum axis number (dimensions number) in polynom. |
protected TString | GetOrderParName(Int_t naxis) |
Double_t | GetPolynomOrder(Int_t naxis) Get polynom order for specified axis. |
virtual const void | Print(Option_t* option) Print information on standard output. |
Bool_t | SetMaxNumAxis(Int_t numaxis) Sets number of dimensions (maximum axis numbers) in polynom. |
Methods inherited from class Go4Fit.TGo4FitParsList |
AddPar, CanRollbackPars, ClearPars, ClearParsBlocking, CreatePar, Find, Find, Find, FindPar, FindPar, FindPar, GetPar, GetParEpsilon, GetParError, GetParFixed, GetParFullName, GetParIndex, GetParName, GetParRange, GetParsValues, GetParValue, InsertPar, IsAllParsFixed, MemorizePars, NumFixedPars, NumFreePars, PrintPars, RememberPars, RemovePar, RemovePar, RemoveParByIndex, SetParEpsilon, SetParError, SetParFixed, SetParName, SetParRange, SetParsNames, SetParsOwner, SetParsValues, SetParsValues, SetParValue |
Methods inherited from class Go4Fit.TGo4FitNamed |
GetFullName, GetOwner, GetOwnerFullName, SetOwner |
Methods inherited from class TNamed |
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine |
Methods inherited from class Go4Fit.TGo4FitSlotList |
CheckDuplicatesOnSlot, CheckObjects, ClearObjects, ClearSlot, ConnectSlots, ConnectSlots, FillSlotList, FindSlot, GetSlot, GetSlotList, IsEmptySlots, IsObjectInSlots, NumSlots, PrepareSlotsForWriting, SetObject, SetObject, SetSaveFlagForObjects, SetUpdateSlotList |
Field Detail |
private TArrayD* fxAllOrders
private Int_t ndim
private Double_t* orders
Constructor Detail |
public TGo4FitModelPolynom()
public TGo4FitModelPolynom(const char * iName, Double_t iOrderX)
public TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY)
public TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY, Double_t iOrderZ)
public TGo4FitModelPolynom(const char * iName, const TArrayD& iPolynomOrders)
Method Detail |
public virtual synchronized ~TGo4FitModelPolynom()
Method Detail |
public virtual void AfterEval()
public virtual Bool_t BeforeEval(Int_t NDimension)
private void CreateOrdersPars(const Double_t* orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx)
public virtual Double_t EvalN(const Double_t* v)
public Int_t GetMaxNumAxis()
protected TString GetOrderParName(Int_t naxis)
public Double_t GetPolynomOrder(Int_t naxis)
public virtual const void Print(Option_t* option)
public Bool_t SetMaxNumAxis(Int_t numaxis)
Association Links |
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |