26 inline SamplingData(T sa=0,T se=1);
27 inline SamplingData(T x0,T y0,T x1,T y1);
31 inline bool operator==(
const SamplingData&)
const;
32 inline bool operator!=(
const SamplingData&)
const;
34 template <
class IT>
inline StepInterval<T> interval(IT nrsamples)
const;
35 template <
class FT>
inline float getfIndex(FT)
const;
36 template <
class FT>
inline int nearestIndex(FT)
const;
37 template <
class FT>
inline int indexOnOrAfter(FT,
40 template <
class IT>
inline T atIndex(IT)
const;
41 template <
class FT>
inline T snap(FT)
const;
43 template <
class FT>
inline void set(FT,FT);
47 inline bool isUdf()
const;
55 template <
class T>
inline 61 template <
class T>
inline 64 step = (y1-y0) / (x1-x0);
70 template <
class FT>
inline 79 template <
class FT>
inline 85 template <
class T>
inline 94 if ( !
mIsZero(val,1e-6f) )
return false;
96 return val < 1e-6f && val > -1e-6f;
104 if ( !
mIsZero(val,1e-10) )
return false;
106 return val < 1e-10 && val > -1e-10;
110 template <
class T>
inline 112 {
return ! (sd == *
this); }
116 template <
class IT>
inline 125 template <
class FT>
inline 131 template <
class FT>
inline 137 template <
class FT>
inline 142 const float diff = fres-res;
151 template <
class FT>
inline 157 template <
class IT>
inline 163 template <
class FT>
inline 169 template <
class FT>
inline 175 template <
class FT>
inline 180 template <
class T>
inline 185 template <
class T>
inline #define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
T step
Definition: samplingdata.h:50
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
int nearestIndex(FT) const
Definition: samplingdata.h:132
#define mIsZero(x, eps)
Definition: commondefs.h:53
void set(FT, FT)
Definition: samplingdata.h:164
#define mCast(tp, v)
Definition: commondefs.h:124
bool operator==(const SamplingData &) const
Definition: samplingdata.h:86
int indexOnOrAfter(FT, float eps=(1e-10)) const
Definition: samplingdata.h:138
T snap(FT) const
Definition: samplingdata.h:152
T atIndex(IT) const
Definition: samplingdata.h:158
#define mNINT32(x)
Definition: commondefs.h:45
T step
Definition: ranges.h:199
T start
Definition: samplingdata.h:49
Interval with step.
Definition: commontypes.h:33
bool isUdf() const
Definition: samplingdata.h:186
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
void scale(T)
Definition: samplingdata.h:181
#define mDefEps
Definition: commondefs.h:58
float getfIndex(FT) const
Definition: samplingdata.h:126
SamplingData(T sa=0, T se=1)
Definition: samplingdata.h:56
T start
Definition: ranges.h:92
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
#define mClass(module)
Definition: commondefs.h:164
bool operator!=(const SamplingData &) const
Definition: samplingdata.h:111
StepInterval< T > interval(IT nrsamples) const
Definition: samplingdata.h:117
bool isUdf(const T &t)
Definition: undefval.h:243