12 #ifndef ROOT_TGraphDelaunay
13 #define ROOT_TGraphDelaunay
Double_t InterpolateOnPlane(Int_t TI1, Int_t TI2, Int_t TI3, Int_t E) const
Finds the z-value at point e given that it lies on the plane defined by t1,t2,t3. ...
Double_t * fZ
Pointer to fGraph2D->fY.
void SetMaxIter(Int_t n=100000)
Defines the number of triangles tested for a Delaunay triangle (number of iterations) before abandoni...
Double_t * fYN
fGraph2D vectors normalized of size fNpoints
Double_t * fX
Number of points in the hull.
Bool_t Enclose(Int_t T1, Int_t T2, Int_t T3, Int_t Ex) const
Is point e inside the triangle t1-t2-t3 ?
Double_t fYNmin
Maximum value of fXN.
Int_t fNhull
Number of data points in fGraph2D.
Double_t GetYNmax() const
Double_t GetXNmin() const
Double_t fYNmax
Minimum value of fYN.
Int_t fTriedSize
Maximum number of iterations to find Delaunay triangles.
Double_t * fDist
Histogram bin height for points lying outside the convex hull.
Double_t * fXN
Pointer to fGraph2D->fZ.
Double_t fXoffset
Maximum value of fYN.
void FileIt(Int_t P, Int_t N, Int_t M)
Files the triangle defined by the 3 vertices p, n and m into the fxTried arrays.
Bool_t InHull(Int_t E, Int_t X) const
Is point e inside the hull defined by all points apart from x ?
#define ClassDef(name, id)
Double_t ComputeZ(Double_t x, Double_t y)
Return the z value corresponding to the (x,y) point in fGraph2D.
The TNamed class is the base class for all named ROOT classes.
Double_t fXNmax
Minimum value of fXN.
void SetMarginBinsContent(Double_t z=0.)
Sets the histogram bin height for points lying outside the convex hull ie: the bins in the margin...
Int_t * GetMTried() const
Double_t GetXNmax() const
Int_t fNpoints
Number of Delaunay triangles found.
TGraphDelaunay & operator=(const TGraphDelaunay &)
Double_t fXScaleFactor
Parameters used to normalize user data.
Int_t * GetPTried() const
Int_t * fOrder
Hull points of size fNhull.
Double_t fXNmin
fGraph2D vectors normalized of size fNpoints
void CreateTrianglesDataStructure()
2D graph containing the user data
Double_t GetMarginBinsContent() const
Double_t * fY
Pointer to fGraph2D->fX.
Bool_t fInit
True if FindAllTriangles() has been performed on fGraph2D.
MyComplex< T > P(MyComplex< T > z, T c_real, T c_imag)
[MyComplex]
TGraph2D * fGraph2D
True if CreateTrianglesDataStructure() and FindHull() have been performed.
Bool_t fAllTri
Array used to order mass points by distance.
Int_t * fPTried
Real size of the fxTried arrays.
TGraph2D * GetGraph2D() const
Int_t * fMTried
Delaunay triangles storage of size fNdt.
void FindAllTriangles()
Attempt to find all the Delaunay triangles of the point set.
Graphics object made of three arrays X, Y and Z with the same number of points each.
virtual ~TGraphDelaunay()
TGraphDelaunay destructor.
Int_t fMaxIter
Array used to order mass points by distance.
TGraphDelaunay generates a Delaunay triangulation of a TGraph2D.
void FindHull()
Finds those points which make up the convex hull of the set.
Double_t Interpolate(Double_t x, Double_t y)
Finds the Delaunay triangle that the point (xi,yi) sits in (if any) and calculate a z-value for it by...
Double_t GetYNmin() const
Int_t * GetNTried() const