KrisLibrary  1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Statistics::IntervalMap2D< Data > Class Template Reference

Public Types

typedef Real Point[2]
 
typedef int Index[2]
 
typedef size_t Size[2]
 

Public Member Functions

void Clear ()
 Sets the interval to be (-inf,inf)x(-inf,inf)
 
void InitPartition (const Size dims, const Point min, const Point max)
 Creates mxn uniformly spaced intervals betwen min,max.
 
void Fill (const Data &val)
 Fills all intervals with the given value.
 
void IntervalRange (const Index index, Point min, Point max) const
 Returns the range of the interval indexed by index.
 
void GetIntervalIndex (const Point val, Index index) const
 Returns the index of the interval containing val.
 
const Data & GetIntervalData (const Point val) const
 Returns the data of the interval containing val.
 
Data & GetIntervalData (const Point val)
 

Public Attributes

std::vector< Real > div1
 
std::vector< Real > div2
 
Array2D< Data > intervals
 

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