Dear experts
I have a set of points f(x, y, s) that I want to do an interpolation, I know I can do this for f(x,y) by TGraph2D::Interpolation()
, is there a similar TGraph3D
to do it?
Dear experts
I have a set of points f(x, y, s) that I want to do an interpolation, I know I can do this for f(x,y) by TGraph2D::Interpolation()
, is there a similar TGraph3D
to do it?
TGraph2D takes (x, y, z) points as inputs. The TGraph2D interpolation is based on Delaunay triangles. It assume that for one (x, y) coordinate there only one z coordinate (ie: duplicate (x,y) points are forbidden). There is no ROOT class interpolating random (x, y, z) clouds of points.
Thank you, I meant a set points that were (x, y, s, f(x, y, s)). Can some class do interpolation for this? 3 input 1 output
Ah ok. may be the GL classes:
https://root.cern/doc/v622/glparametric_8C_source.html
https://root.cern/doc/master/gltf3_8C_source.html
I had a look at links you shared, but seems they all use a analytic function to describ. The set of points I got can not (or I don’t know how) be describ by a analytic function, so I’m looking for something just like TGraph2D::Interpolation()
but is 3D version.
There is not equivalent (triangle interpolation) for 3D data set. Have you tried to fill a TH3 with you points ?