Cdf Class Reference

#include <Cdf.H>

List of all members.

Public Member Functions

 Cdf (const std::vector< size_t > &data, bool countZeros)
 This constructor assumes that is ok to copy and sort the data... that it is not too big.
float getCDF (const size_t value)
 Get the CDF at the point value.
float getCDF (const size_t value, float &bottom, float &top)
 Get the bracketing percents for a point... there may be many with the same value.
void print ()
 Dump the cdf to stdout.
void writeForGraphing (const std::string &filename)
 Write the data out to a file in a style suitable for gnuplot.

Private Attributes

std::vector< size_t > value
std::vector< float > percent


Constructor & Destructor Documentation

Cdf::Cdf const std::vector< size_t > &  data,
bool  countZeros
 

This constructor assumes that is ok to copy and sort the data... that it is not too big.


Member Function Documentation

float Cdf::getCDF const size_t  value,
float &  bottom,
float &  top
 

Get the bracketing percents for a point... there may be many with the same value.

float Cdf::getCDF const size_t  value  ) 
 

Get the CDF at the point value.

void Cdf::print  ) 
 

Dump the cdf to stdout.

void Cdf::writeForGraphing const std::string &  filename  ) 
 

Write the data out to a file in a style suitable for gnuplot.

gnuplot

plot 'filename' with lines


Member Data Documentation

std::vector<float> Cdf::percent [private]
 

std::vector<size_t> Cdf::value [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6