#ifndef ROOT_TKDPDF
#define ROOT_TKDPDF
-#ifndef ROOT_TKDTree
-#include "TKDTree.h"
-#endif
-
#ifndef ROOT_TKDInterpolatorBase
#include "TKDInterpolatorBase.h"
#endif
+#ifndef ROOT_TKDTree
+#include "TKDTree.h"
+#endif
+
// Non parametric interpolation class based on local polinomial regression.
// The class can be used to approximate PDF together with TKDTree or for
// general regression when the data points are given.
//__________________________________________________________________
Bool_t TKDPDF::GetDataPoint(Int_t n, Float_t *p) const
{
- if(n < 0 || n >= fNpoints) return kFALSE;
+ if(n < 0 || n >= fNPoints) return kFALSE;
if(!fData) return kFALSE;
for(int i=0; i<fNDim; i++) p[i] = fData[i][n];
//__________________________________________________________________
Int_t TKDPDF::GetNodeIndex(const Float_t *p)
{
- return FindNode(p) - fNnodes;
+ return FindNode(p) - fNNodes;
}
#endif