OSFEG-C++  1.4.6
OpenSF Error Generation Library
RandomFunctions.h
1 /*
2  * openSF Error Generation Libraries (OSFEG)
3  * Deimos Space, S.L.U.
4  *
5  * This file is part of OSFEG. OSFEG is free software; you can redistribute it
6  * and/or modify it under the terms of the 'ESA Software Community Licence Permissive' as
7  * published by the European Space Agency; either version 2.4 of the License,
8  * or (at your option) any later version. You should have received a
9  * copy of the 'ESA Software Community Licence Permissive - v2.4' along with this program
10  * or one can be found at <http://eop-cfi.esa.int/index.php/docs-and-mission-data/licensing-documents>.
11  *
12  */
13 
14 #ifndef RANDOMFUNCTIONS_H_
15 #define RANDOMFUNCTIONS_H_
16 
17 #include "Random.h"
18 #include <vector>
19 
28 {
29 private:
30  Random *random;
31 
42  double cdfNormal(double x,double mu,double sigma);
43  bool fModified ;
44  double pModified ;
45  double p1Modified ;
46  double p2Modified ;
47 public:
54 
59 
69  double truncatedNormal(double mu, double sigma, double xMin, double xMax);
70 
80  double customPDF(double xMin, double xMax, double step, const vector<double>& values);
81 };
82 
83 #endif /* ANALYTICAL_H_ */
Definition: RandomFunctions.h:28
double truncatedNormal(double mu, double sigma, double xMin, double xMax)
RandomFunctions(Random *random)
double customPDF(double xMin, double xMax, double step, const vector< double > &values)
Random numbers engine with additional distributions.
Definition: Random.h:109