53 template <
class PtrObj,
typename MemFn>
54 TF3(
const char *name,
const PtrObj& p, MemFn memFn,
Double_t xmin,
Double_t xmax,
Double_t ymin,
Double_t ymax,
Double_t zmin,
Double_t zmax,
Int_t npar,
56 TF2(name,p,memFn,xmin,xmax,ymin,ymax,npar,ndim),
57 fZmin(zmin), fZmax(zmax), fNpz(30)
60 template <
class PtrObj,
typename MemFn>
61 TF3(
const char *name,
const PtrObj& p, MemFn memFn,
Double_t xmin,
Double_t xmax,
Double_t ymin,
Double_t ymax,
Double_t zmin,
Double_t zmax,
Int_t npar,
62 const char * ,
const char * ) :
63 TF2(name,p,memFn,xmin,xmax,ymin,ymax,npar,3),
64 fZmin(zmin), fZmax(zmax), fNpz(30)
68 template <
typename Func>
71 TF2(name,f,xmin,xmax,ymin,ymax,npar,ndim),
72 fZmin(zmin), fZmax(zmax), fNpz(30)
75 template <
typename Func>
78 TF2(name,f,xmin,xmax,ymin,ymax,npar,3),
79 fZmin(zmin), fZmax(zmax), fNpz(30)
120 virtual Double_t Mean3X(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return Moment3(1,ax,bx,0,ay,by,0,az,bz,
epsilon);}
121 virtual Double_t Mean3Y(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return Moment3(0,ax,bx,1,ay,by,0,az,bz,
epsilon);}
122 virtual Double_t Mean3Z(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return Moment3(0,ax,bx,0,ay,by,1,az,bz,
epsilon);}
124 virtual Double_t Variance3X(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(2,ax,bx,0,ay,by,0,az,bz,
epsilon);}
125 virtual Double_t Variance3Y(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(0,ax,bx,2,ay,by,0,az,bz,
epsilon);}
126 virtual Double_t Variance3Z(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(0,ax,bx,0,ay,by,2,az,bz,
epsilon);}
128 virtual Double_t Covariance3XY(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(1,ax,bx,1,ay,by,0,az,bz,
epsilon);}
129 virtual Double_t Covariance3XZ(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(1,ax,bx,0,ay,by,1,az,bz,
epsilon);}
130 virtual Double_t Covariance3YZ(
Double_t ax,
Double_t bx,
Double_t ay,
Double_t by,
Double_t az,
Double_t bz,
Double_t epsilon=0.000001) {
return CentralMoment3(0,ax,bx,1,ay,by,1,az,bz,
epsilon);}
virtual void Copy(TObject &f3) const
Copy this F3 to a new F3.
virtual Double_t Covariance3YZ(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual Double_t Moment3(Double_t nx, Double_t ax, Double_t bx, Double_t ny, Double_t ay, Double_t by, Double_t nz, Double_t az, Double_t bz, Double_t epsilon=0.000001)
Return x^nx * y^ny * z^nz moment of a 3d function in range [ax,bx],[ay,by],[az,bz].
Param Functor class for Multidimensional functions.
virtual Double_t Covariance3XY(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual Double_t Mean3Y(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual void Draw(Option_t *option="")
Draw this function with its current attributes.
virtual void Save(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax)
Save values of function in array fSave.
virtual Double_t GetZmax() const
virtual TH1 * CreateHistogram()
Create a histogram for axis range.
virtual ~TF3()
F3 default destructor.
virtual void GetRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
Return range of a 2-D function.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual Double_t Mean3X(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t epsrel=1.e-6)
Return Integral of a 2d function in range [ax,bx],[ay,by] with desired relative accuracy (default val...
virtual Double_t GetMinimumXYZ(Double_t &x, Double_t &y, Double_t &z)
Compute the X, Y and Z values corresponding to the minimum value of the function on its range...
virtual void SetClippingBoxOn(Double_t xclip=0, Double_t yclip=0, Double_t zclip=0)
Set the function clipping box (for drawing) "on" and define the clipping box.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
#define ClassDef(name, id)
virtual TObject * DrawDerivative(Option_t *="al")
Draw derivative of this function.
virtual Double_t Mean3Z(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual Double_t GetMaximumXYZ(Double_t &x, Double_t &y, Double_t &z)
Compute the X, Y and Z values corresponding to the maximum value of the function on its range...
TF3()
F3 default constructor.
virtual void Paint(Option_t *option="")
Paint this 3-D function with its current attributes.
virtual Double_t Variance3Y(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
virtual Double_t Covariance3XZ(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
TF3(const char *name, const PtrObj &p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar, const char *, const char *)
Backward compatible ctor.
TF3(const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar, const char *)
backward compatible ctor
virtual Double_t Integral(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsrel=1.e-6)
Return Integral of a 3d function in range [ax,bx],[ay,by],[az,bz] with a desired relative accuracy...
virtual Double_t CentralMoment3(Double_t nx, Double_t ax, Double_t bx, Double_t ny, Double_t ay, Double_t by, Double_t nz, Double_t az, Double_t bz, Double_t epsilon=0.000001)
Return x^nx * y^ny * z^nz central moment of a 3d function in range [ax,bx],[ay,by],[az,bz].
A 3-Dim function with parameters.
virtual void GetRange(Double_t &xmin, Double_t &xmax) const
Return range of a 1-D function.
virtual void GetRandom3(Double_t &xrandom, Double_t &yrandom, Double_t &zrandom)
Return 3 random numbers following this function shape.
virtual TObject * DrawIntegral(Option_t *="al")
Draw integral of this function.
A 2-Dim function with parameters.
TF3 & operator=(const TF3 &rhs)
Operator =.
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual Double_t Variance3Z(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual void SetClippingBoxOff()
Set the function clipping box (for drawing) "off".
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
virtual Double_t Variance3X(Double_t ax, Double_t bx, Double_t ay, Double_t by, Double_t az, Double_t bz, Double_t epsilon=0.000001)
TF3(const char *name, Func f, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar, Int_t ndim=3)
virtual void SetRange(Double_t xmin, Double_t xmax)
Initialize the upper and lower bounds to draw the function.
virtual void GetRange(Double_t *xmin, Double_t *xmax) const
Return range of a generic N-D function.
virtual Bool_t IsInside(const Double_t *x) const
Return kTRUE is the point is inside the function range.
virtual Double_t FindMinMax(Double_t *x, bool findmax) const
Return minimum/maximum value of the function.
virtual Double_t GetZmin() const
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a function.
virtual Double_t GetSave(const Double_t *x)
Get value corresponding to X in array of fSave values.
TF3(const char *name, const PtrObj &p, MemFn memFn, Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax, Double_t zmin, Double_t zmax, Int_t npar, Int_t ndim=3)
virtual void SetNpz(Int_t npz=30)
Set the number of points used to draw the function.