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) {
Int_t GetFirst() const
Return first bin on the axis i.e.
TAxis * GetYAxis() const
Y axis for plot.
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.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
const Rgl::Range_t & GetZRange() const
V3 range (Z).
void Predict(const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const
Calculate densities.
const Rgl::Range_t & GetXRange() const
V1 range (X).
UInt_t GetW() const
Number of cells along X.
UInt_t GetH() const
Number of cells along Y.
void Error(const char *location, const char *msgfmt,...)
Float_t GetData(UInt_t i, UInt_t j, UInt_t k) const
Get data at given position.
Class to manage histogram axis.
TAxis * GetZAxis() const
Z axis for plot.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
UInt_t GetD() const
Number of cells along Z.
std::vector< Double_t > vector_t
TAxis * GetXAxis() const
X axis for plot.
Int_t GetLast() const
Return last bin on the axis i.e.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
void FetchDensities() const
Do some initialization and 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.
const Rgl::Range_t & GetYRange() const
V2 range (Y).