Clipper
|
Generic map statistics class. More...
#include <map_utils.h>
Public Member Functions | |
Map_stats () | |
null constructor | |
template<class M > | |
Map_stats (const M &map) | |
Constructor: from Xmap. | |
const ftype & | mean () const |
Mean of map. | |
const ftype & | std_dev () const |
Std deviation of map. | |
const ftype & | min () const |
Minimum of map. | |
const ftype & | max () const |
Maximum of map. | |
const Range | range () const |
Range. |
Generic map statistics class.
This class is used to calculate and store the mean and standard deviation of a generic map object of scalar types (e.g. Xmap, NXmap). If the map contains NaN values, those points are excluded for the calculation. In the case of an Xmap, the proper multiplicty corrections are applied to give statistics for a whole unit cell
clipper::Map_stats::Map_stats | ( | const M & | map | ) |
Constructor: from Xmap.
For float and double maps map The map for which moments are to be calculated.
References clipper::Util::is_nan().