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
15
class
Distributions
{
16
17
public
:
18
Distributions
(std::mt19937_64 &_generator, std::vector<Shape> &shapeFamilies);
19
~Distributions
();
20
ExpDist
*
expDist
;
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
Distributions::getMaxDecimalForDouble
double getMaxDecimalForDouble()
Definition:
distributions.cpp:56
expDist.h
Distributions::~Distributions
~Distributions()
Definition:
distributions.cpp:194
Distributions::getMaxDigits
int getMaxDigits()
Definition:
distributions.cpp:46
structures.h
Distributions::maxInput
double maxInput
Definition:
distributions.h:26
Distributions::checkDistributionUserInput
void checkDistributionUserInput(std::vector< Shape > &shapeFamilies)
Definition:
distributions.cpp:95
Distributions::Distributions
Distributions(std::mt19937_64 &_generator, std::vector< Shape > &shapeFamilies)
Definition:
distributions.cpp:30
Distributions
Definition:
distributions.h:15
Distributions::expDist
ExpDist * expDist
Definition:
distributions.h:20
ExpDist
Definition:
expDist.h:12
Distributions::quitOrContinue
void quitOrContinue()
Definition:
distributions.cpp:172
distributions.h
Generated by
1.8.12