5 #ifndef GEOMODELKERNEL_CELLPARTITIONING_H 6 #define GEOMODELKERNEL_CELLPARTITIONING_H 21 void addValue(
double xVal);
23 double binLower(
unsigned int i)
const 25 return m_partition[i-getFirstDivisionNumber()];
28 double binUpper(
unsigned int i)
const 30 return m_partition[i-getFirstDivisionNumber()+1];
33 double binCenter(
unsigned int i)
const 35 return 0.5*(binUpper(i)+binLower(i));
38 unsigned int getNumDivisions()
const 40 return m_partition.size()-1;
43 unsigned int getFirstDivisionNumber()
const 45 return m_firstDivisionNumber;
48 double getStart()
const 50 return m_partition[0];
55 return m_partition[m_partition.size()-1];
60 std::vector<double> m_partition;
62 unsigned int m_firstDivisionNumber;