27 : fW(0), fH(0), fD(0),
29 fXMin(0.), fXStep(0.),
30 fYMin(0.), fYStep(0.),
31 fZMin(0.), fZStep(0.),
44 const Double_t xRange = xMinMax.second - xMinMax.first;
48 const Double_t yRange = yMinMax.second - yMinMax.first;
52 const Double_t zRange = zMinMax.second - zMinMax.first;
124 Error(
"TKDEAdapter::FetchFirstSlices",
"Density estimator is a null pointer." 125 " Set it correctly first.");
126 throw std::runtime_error(
"No density estimator.");
136 for (
UInt_t j = 0; j <
fW; ++j, ind += 3) {
const Rgl::Range_t & GetYRange() const
V2 range (Y).
Int_t GetFirst() const
Return first bin on the axis i.e.
UInt_t GetW() const
Number of cells along X.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Double_t GetE() const
e for kdefgt.
void FreeVectors()
Free grid and density vectors.
std::pair< Double_t, Double_t > Range_t
TKDEAdapter()
Constructor. "Half-baked" object.
UInt_t GetD() const
Number of cells along Z.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
const Rgl::Range_t & GetZRange() const
V3 range (Z).
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
void Error(const char *location, const char *msgfmt,...)
const Rgl::Range_t & GetXRange() const
V1 range (X).
TAxis * GetYAxis() const
Y axis for plot.
UInt_t GetH() const
Number of cells along Y.
Int_t GetLast() const
Return last bin on the axis i.e.
Class to manage histogram axis.
Float_t GetData(UInt_t i, UInt_t j, UInt_t k) const
Get data at given position.
std::vector< Double_t > vector_t
void FetchDensities() const
Do some initialization and calculate densities.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
void Predict(const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const
Calculate densities.
void SetGeometry(const TGL5DDataSet *dataSet)
Set grid's dimensions.
void SetE(Double_t e)
e for kdefgt.
void SetDataSource(const TKDEFGT *dataSource)
Set density estimator as a data source.
TAxis * GetXAxis() const
X axis for plot.
TAxis * GetZAxis() const
Z axis for plot.