Generic ordinal gernerator.
More...
#include <clipper_stats.h>
Inheritance diagram for clipper::Generic_ordinal:
List of all members.
Public Member Functions
null constructor
constructor: from range and sampling
initialiser: takes the source range and sampling
void
init (const std::vector<
ftype > &values, const int num_ranges=1000)
initialiser: takes the source distibution and a number of bins
return reflection ordinal
accumulate values to build the distribution
accumulate values to build the distribution
generate the ordinal histogram
invert distribution to get value from ordinal
void
init (const int num_ranges=1000)
DEPRECATED: initialiser: takes a number of bins for histogram.
DEPRECATED: add a value to the distribution (pass 1 of 2)
DEPRECATED: add a value to the distribution (pass 2 of 2)
Protected Attributes
number of ranges
resolution range of data
histogram of reflections vs resolution
Detailed Description
Generic ordinal gernerator.
This is a generic fast ordinal calculator. It is supplied with a list of values, from which it prepares a cumulative distribution function. This may the used to return the approximate fracitonal ordinal (in the range 0...1) for any given value from the distibution.
The distibution may be initialised by providing a vector of values from the distribution, or by adding the values and calling prep_ordinal().
This distribution may also be inverted. Generation of a value from an ordinal may be used for generating random values from a given distribution, or for histogram matching.
The documentation for this class was generated from the following files: