4 #ifndef ROOT_TKDInterpolatorBase 16 template <
typename Index,
typename Value>
class TKDTree;
24 TKDPDF(TTree *t,
const Char_t *var,
const Char_t *
cut = 0, UInt_t bsize = 100, Long64_t nentries = 1000000000, Long64_t firstentry = 0);
25 TKDPDF(Int_t
npoints, Int_t ndim, UInt_t bsize, Float_t **data);
30 void DrawNode(Int_t tnode, UInt_t ax1=0, UInt_t ax2=1);
35 Bool_t
Build(Int_t ndim = 0);
45 if(n < 0 || n >= fNPoints)
return kFALSE;
46 if(!fData)
return kFALSE;
48 for(
int i=0; i<fNDim; i++) p[i] = fData[i][n];
55 return FindNode(p) - fNNodes;
void DrawNode(Int_t tnode, UInt_t ax1=0, UInt_t ax2=1)
Int_t GetNodeIndex(const Float_t *p)
TKDPDF & operator=(const TKDPDF &)
Bool_t GetDataPoint(Int_t n, Float_t *p) const
Bool_t Build(Int_t ndim=0)
class TKDTree< Int_t, Float_t > TKDTreeIF