1 #ifndef __JTOOLS__JGRIDCOLLECTION__
2 #define __JTOOLS__JGRIDCOLLECTION__
13 namespace JPP {
using namespace JTOOLS; }
29 template<
class JElement_t,
class JDistance_t = JDistance<
typename JElement_t::abscissa_type> >
68 return (
int) ((this->size() - 1) * (x - this->begin()->getX()) / (this->rbegin()->getX() - this->begin()->getX()));
84 else if (index >= (
int) this->size())
87 return this->begin() + index;
102 return this->begin();
103 else if (index >= (
int) this->size())
106 return this->begin() + index;
JArgument< T >::argument_type argument_type
General purpose class for a collection of sorted elements.
Template for generic class types.