Clipper
|
Range sampling: discrete sampling of a real range. More...
#include <clipper_stats.h>
Public Member Functions | |
Range_sampling () | |
null constructor | |
Range_sampling (const int &n) | |
constructor: from number of samplings | |
Range_sampling (const Range< ftype > &range, const int &n) | |
constructor: from range and number of samplings | |
ftype | indexf (const ftype &x) const |
return fractional posn in counting range from x-value (0..n) | |
ftype | x (const ftype &i) const |
return x-value (0..n) from fractional posn in counting range | |
int | index (const ftype &x) const |
return nearest index to particular x-value | |
int | index_bounded (const ftype &x) const |
return nearest index to particular x-value (bounded 0...n-1) | |
ftype | x (const int &i) const |
return x-value corresponding to centre of i'th range | |
ftype | x_min (const int &i) const |
return x-value corresponding to bottom of i'th range | |
ftype | x_max (const int &i) const |
return x-value corresponding to top of i'th range | |
int | size () const |
return number of samplings in range |
Range sampling: discrete sampling of a real range.