Cdf.H File Reference

Header providing the CDF class (Cumulative Distribution Function). More...

#include <vector>

Go to the source code of this file.

Classes

class  Cdf

Functions

size_t cdf (const std::vector< size_t > &data, std::vector< size_t > &value, std::vector< float > percent)
 create a CDF (Cumulative Distribution Function) of a set of values


Detailed Description

Header providing the CDF class (Cumulative Distribution Function).


Function Documentation

size_t cdf const std::vector< size_t > &  data,
std::vector< size_t > &  value,
std::vector< float >  percent
 

create a CDF (Cumulative Distribution Function) of a set of values

Parameters:
data What to make the CDF from
value Returns the data value for this entry of the cdf. These will be sorted from smallest to largest. The value table will be sparse.
percent What percent for each value entry. This is the % of the data included using this value. The first value will not be 0. The final value should be ~1.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6