mutilate/distributions.h
Jacob Leverich 386320d266 Initial check-in.
This is extracted from another git repo.  This is the first release, and
the prior commit history is not terribly interesting, so I'm not going
to bother using filter-branch to try to cleanly isolate the history for
this tool.

Cheers.
2012-08-23 14:30:32 -07:00

15 lines
417 B
C

#ifndef DISTRIBUTIONS_H
#define DISTRIBUTIONS_H
// If you change this, make sure to update distributions.cc.
enum distribution_t { UNIFORM, EXPONENTIAL, ZIPFIAN, LATEST };
extern const char* distributions[];
double generate_normal(double mean, double sd);
double generate_poisson(double lambda);
double generate_uniform(double lambda);
distribution_t get_distribution(const char *name);
#endif // DISTRIBUTIONS_H