Clipper
Public Member Functions | List of all members
clipper::Range_sampling Class Reference

Range sampling: discrete sampling of a real range. More...

#include <clipper_stats.h>

Inheritance diagram for clipper::Range_sampling:
clipper::Range< ftype > clipper::Histogram

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
 
- Public Member Functions inherited from clipper::Range< ftype >
 Range ()
 null constructor
 
 Range (const ftype &min, const ftype &max)
 constructor
 
const ftypemin () const
 minimum value
 
const ftypemax () const
 maximum value
 
ftype range () const
 range = max - min
 
void include (const ftype &datum)
 update limits to include a new datum
 
bool contains (const ftype &datum) const
 test if data is within limits ( min <= datum <= max )
 
ftype truncate (const ftype &datum) const
 truncate data to be within range
 

Detailed Description

Range sampling: discrete sampling of a real range.


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