DFNgen  2.0
DFN Model Generator
distributions.h
Go to the documentation of this file.
1 #ifndef _distributions_h
2 #define _distributions_h
3 #include "expDist.h"
4 #include <random>
5 #include "structures.h"
6 
16 
17 public:
18  Distributions(std::mt19937_64 &_generator, std::vector<Shape> &shapeFamilies);
21 
26  double maxInput;
27 
28 private:
29 /* Calculates the maximum precision in number of digits after the
30  decimal place for a number between 0 and 1. */
31  int getMaxDigits();
32 
33  // Retrns something like 0.99999... to the maximum precision
34  // before becomming considered 1 by the computer
35  double getMaxDecimalForDouble();
36 
37  // See distributions.cpp
38  void checkDistributionUserInput(std::vector<Shape> &shapeFamilies);
39  void quitOrContinue();
40 };
41 
42 #endif
double getMaxDecimalForDouble()
void checkDistributionUserInput(std::vector< Shape > &shapeFamilies)
Distributions(std::mt19937_64 &_generator, std::vector< Shape > &shapeFamilies)
ExpDist * expDist
Definition: distributions.h:20