lsst.jointcal g15c59248fb+f53d302ff2
Public Member Functions | List of all members
lsst::jointcal::SparseHisto4d Class Reference

A class to histogram in 4 dimensions. More...

#include <Histo4d.h>

Public Member Functions

 SparseHisto4d ()
 
 SparseHisto4d (const int n1, double min1, double max1, const int n2, double min2, double max2, const int n3, double min3, double max3, const int n4, double min4, double max4, const int nEntries)
 
void fill (const double x[4])
 
void fill (const double x1, const double x2, const double x3, const double x4)
 
int maxBin (double x[4])
 
void zeroBin (double x[4])
 
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. More...
 
int getNEntries () const
 
 ~SparseHisto4d ()
 
int code_value (const double x[4]) const
 
void inverse_code (const int code, double x[4]) const
 
void sort ()
 
void print () const
 

Detailed Description

A class to histogram in 4 dimensions.

Uses Sparse storage. The number of bin is limited to 256 per dimension. Used in ListMatch.cc

Definition at line 33 of file Histo4d.h.

Constructor & Destructor Documentation

◆ SparseHisto4d() [1/2]

lsst::jointcal::SparseHisto4d::SparseHisto4d ( )
inline

Definition at line 35 of file Histo4d.h.

◆ SparseHisto4d() [2/2]

lsst::jointcal::SparseHisto4d::SparseHisto4d ( const int  n1,
double  min1,
double  max1,
const int  n2,
double  min2,
double  max2,
const int  n3,
double  min3,
double  max3,
const int  n4,
double  min4,
double  max4,
const int  nEntries 
)

Definition at line 41 of file Histo4d.cc.

◆ ~SparseHisto4d()

lsst::jointcal::SparseHisto4d::~SparseHisto4d ( )
inline

Definition at line 56 of file Histo4d.h.

Member Function Documentation

◆ binLimits()

void lsst::jointcal::SparseHisto4d::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.

Definition at line 151 of file Histo4d.cc.

◆ code_value()

int lsst::jointcal::SparseHisto4d::code_value ( const double  x[4]) const

Definition at line 67 of file Histo4d.cc.

◆ fill() [1/2]

void lsst::jointcal::SparseHisto4d::fill ( const double  x1,
const double  x2,
const double  x3,
const double  x4 
)

Definition at line 105 of file Histo4d.cc.

◆ fill() [2/2]

void lsst::jointcal::SparseHisto4d::fill ( const double  x[4])

Definition at line 92 of file Histo4d.cc.

◆ getNEntries()

int lsst::jointcal::SparseHisto4d::getNEntries ( ) const
inline

Definition at line 54 of file Histo4d.h.

◆ inverse_code()

void lsst::jointcal::SparseHisto4d::inverse_code ( const int  code,
double  x[4] 
) const

Definition at line 77 of file Histo4d.cc.

◆ maxBin()

int lsst::jointcal::SparseHisto4d::maxBin ( double  x[4])

Definition at line 114 of file Histo4d.cc.

◆ print()

void lsst::jointcal::SparseHisto4d::print ( ) const

Definition at line 159 of file Histo4d.cc.

◆ sort()

void lsst::jointcal::SparseHisto4d::sort ( )

Definition at line 85 of file Histo4d.cc.

◆ zeroBin()

void lsst::jointcal::SparseHisto4d::zeroBin ( double  x[4])

Definition at line 136 of file Histo4d.cc.


The documentation for this class was generated from the following files: