23#include <QtCore/QString> 
   32        int index()
 const { 
return mIndex; } 
 
   45        void setup(
const int gridSize);
 
   46        void setWeight(
const int index, 
const int value);
 
   67        void setup(
const QString &funcExpr, 
const double lowerBound=0., 
const double upperBound=1., 
const bool isSumFunc=
false, 
const int stepCount=100);
 
   72        double getProbOfRange(
const double lowerBound, 
const double upperBound); 
 
   78        double mLowerBound, mUpperBound;
 
An expression engine for mathematical expressions provided as strings.
Definition: expression.h:29
numbers with a user defined probaility density function.
Definition: random.h:62
~RandomCustomPDF()
Definition: random.cpp:189
RandomCustomPDF(const QString &densityFunction)
Definition: random.h:65
double getProbOfRange(const double lowerBound, const double upperBound)
get probability of random numbers between given bounds.
Definition: random.cpp:252
const QString & densityFunction() const
Definition: random.h:69
RandomCustomPDF()
Definition: random.cpp:185
void setup(const QString &funcExpr, const double lowerBound=0., const double upperBound=1., const bool isSumFunc=false, const int stepCount=100)
setup of the properites of the RandomCustomPDF.
Definition: random.cpp:202
double get()
get a random number
Definition: random.cpp:238
index of a given size in a random order.
Definition: random.h:27
~RandomIndex()
Definition: random.cpp:47
int index() const
retrieve (random) index
Definition: random.h:32
RandomIndex(int aCount)
creates a index with aCount entries.
Definition: random.cpp:34
bool next()
retrieve next index. return false if all indices used.
Definition: random.cpp:53
int get()
Definition: random.cpp:115
RandomWeighted()
Definition: random.cpp:78
void setup(const int gridSize)
Definition: random.cpp:85
~RandomWeighted()
Definition: random.cpp:101
double getRelWeight(const int index)
Definition: random.cpp:129
void setWeight(const int index, const int value)
Definition: random.cpp:107