v2.10-0 (21000JUN2005)

Go4Fit
Class TGo4FitModelPolynom


class TGo4FitModelPolynom
derived from TGo4FitModel

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_tndim
          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 voidAfterEval()
           
 virtual Bool_tBeforeEval(Int_t NDimension)
           
 private voidCreateOrdersPars(const Double_t* orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx)
           
 virtual Double_tEvalN(const Double_t* v)
           
 Int_tGetMaxNumAxis()
          Returns maximum axis number (dimensions number) in polynom.
 protected TStringGetOrderParName(Int_t naxis)
           
 Double_tGetPolynomOrder(Int_t naxis)
          Get polynom order for specified axis.
 virtual const voidPrint(Option_t* option)
          Print information on standard output.
 Bool_tSetMaxNumAxis(Int_t numaxis)
          Sets number of dimensions (maximum axis numbers) in polynom.

Methods inherited from class Go4Fit.TGo4FitModel
AddModelToDataResult, AssignmentName, AssignToData, BuffersAllocated, ChangeDataNameInAssignments, ClearAssigmentTo, ClearAssignments, ClearAssignmentTo, ConnectToDataIfAssigned, Evaluate, Evaluate, Evaluate, Evaluate, EvaluateAndIntegrate, EvaluateAtPoint, EvaluateAtPoint, Finalize, Get, GetAssignedConnection, GetDataFullIndex, GetDataIndexesSize, GetGroupIndex, GetModelBins, GetPosition, GetPosPar, GetPosParIndex, GetRatioValueFor, GetWidth, GetWidthPar, GetWidthParIndex, Initialize, Integral, IsAssignTo, NeedIntegration, NumAssigments, NumPars, RebuildShape, SetBackgroundGroupIndex, SetGroupIndex, SetIntegrationsProperty, SetNeedToRebuild, SetPosition, SetWidth, UserFunction

Methods inherited from class Go4Fit.TGo4FitComponent
AddRangeCondition, AddRangeCut, CanAmplTouch, CheckRangeConditions, ClearRanges, CollectParsTo, ExcludeRange, GetAmplError, GetAmplFullName, GetAmplIndex, GetAmplName, GetAmplPar, GetAmplValue, GetNumRangeCondition, GetNumRangeCut, GetRangeCondition, GetRangeCut, GetRangeMax, GetRangeMin, GetUseBuffers, IsAnyRangeLimits, IsRangeCutExcluding, MakeAmpl, NewAmplitude, NewParameter, RemoveAmpl, RemoveRangeCondition, RemoveRangeCut, SetAmplError, SetAmplIndex, SetAmplValue, SetRange, SetRangeCondition, SetRangeCutExcluding, SetRangeMax, SetRangeMin, SetUseBuffers

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

fxAllOrders

private TArrayD* fxAllOrders
Temporary variable for EvalN() function.

ndim

private Int_t ndim
Temporary variable for EvalN() function.

orders

private Double_t* orders
Temporary variable for EvalN() function.
Constructor Detail

TGo4FitModelPolynom

public TGo4FitModelPolynom()
Default constructor.

TGo4FitModelPolynom

public TGo4FitModelPolynom(const char * iName, Double_t iOrderX)
Creates TGo4FitModelPolynom object with given name for 1-dim case.
The order of polynom for x axis can be specified (0 by default).

TGo4FitModelPolynom

public TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY)
Creates TGo4FitModelPolynom object with given name for 2-dim case.
The order of polynom for x and y axises should be specified.

TGo4FitModelPolynom

public TGo4FitModelPolynom(const char * iName, Double_t iOrderX, Double_t iOrderY, Double_t iOrderZ)
Creates TGo4FitModelPolynom object with given name for 3-dim case.
The order of polynom for x, y and z axises should be specified.

TGo4FitModelPolynom

public TGo4FitModelPolynom(const char * iName, const TArrayD& iPolynomOrders)
Creates TGo4FitModelPolynom object with given name for n-dim case.
An array of polynoms orders for appropriate axis should be specified. The size of array will be a dimensions size of polynom. But the n-dim polynom can be used for m-dim case. If n>m, orders for missing axis will be set 0. If n
Method Detail

~TGo4FitModelPolynom

public virtual synchronized ~TGo4FitModelPolynom()
Destroys TGo4FitModelPolynom object.
Method Detail

AfterEval

public virtual void AfterEval()

BeforeEval

public virtual Bool_t BeforeEval(Int_t NDimension)

CreateOrdersPars

private void CreateOrdersPars(const Double_t* orders, Int_t startaxis, Int_t maxaxis, Int_t AtIndx)

EvalN

public virtual Double_t EvalN(const Double_t* v)

GetMaxNumAxis

public Int_t GetMaxNumAxis()
Returns maximum axis number (dimensions number) in polynom.

GetOrderParName

protected TString GetOrderParName(Int_t naxis)

GetPolynomOrder

public Double_t GetPolynomOrder(Int_t naxis)
Get polynom order for specified axis.

Print

public virtual const void Print(Option_t* option)
Print information on standard output.

SetMaxNumAxis

public Bool_t SetMaxNumAxis(Int_t numaxis)
Sets number of dimensions (maximum axis numbers) in polynom.

Association Links

to Class TArrayD

Temporary variable for EvalN() function.

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005