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) {
void Error(const char *location, const char *msgfmt,...)
TKDEAdapter()
Constructor. "Half-baked" object.
void SetGeometry(const TGL5DDataSet *dataSet)
Set grid's dimensions.
Float_t GetData(UInt_t i, UInt_t j, UInt_t k) const
Get data at given position.
UInt_t GetH() const
Number of cells along Y.
void SetDataSource(const TKDEFGT *dataSource)
Set density estimator as a data source.
void SetE(Double_t e)
e for kdefgt.
void FetchDensities() const
Do some initialization and calculate densities.
UInt_t GetD() const
Number of cells along Z.
std::vector< Double_t > vector_t
void FreeVectors()
Free grid and density vectors.
UInt_t GetW() const
Number of cells along X.
Double_t GetE() const
e for kdefgt.
Class to manage histogram axis.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Int_t GetLast() const
Return last bin on the axis i.e.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
TAxis * GetZAxis() const
Z axis for plot.
const Rgl::Range_t & GetZRange() const
V3 range (Z).
const Rgl::Range_t & GetYRange() const
V2 range (Y).
TAxis * GetYAxis() const
Y axis for plot.
TAxis * GetXAxis() const
X axis for plot.
const Rgl::Range_t & GetXRange() const
V1 range (X).
void Predict(const std::vector< Double_t > &targets, std::vector< Double_t > &densities, Double_t e) const
Calculate densities.
std::pair< Double_t, Double_t > Range_t