2 #ifndef LSST_JOINTCAL_HISTO4D_H 3 #define LSST_JOINTCAL_HISTO4D_H 12 std::unique_ptr<int[]> _data;
16 double _minVal[4], _maxVal[4];
23 SparseHisto4d(
const int n1,
double min1,
double max1,
const int n2,
double min2,
double max2,
24 const int n3,
double min3,
double max3,
const int n4,
double min4,
double max4,
27 void fill(
const double x[4]);
29 void fill(
const double x1,
const double x2,
const double x3,
const double x4);
37 void binLimits(
const double x[4],
const int idim,
double &xMin,
double &xMax)
const;
53 #endif // LSST_JOINTCAL_HISTO4D_H void fill(const double x[4])
int code_value(const double x[4]) const
void binLimits(const double x[4], const int idim, double &xMin, double &xMax) const
return the bin limits of dimension idim (0<=idim<4), around point X.
A class to histogram in 4 dimensions.
void inverse_code(const int code, double x[4]) const
Class for a simple mapping implementing a generic Gtransfo.
void zeroBin(double x[4])