Tools.hpp
1
tools.hpp #ifndef TOOLS_HPP_INCLUDED #define TOOLS_HPP_INCLUDED #include <string> //Zeigt den Fortschritt an void ProgressBar(int iteration, int num_iterations); //Wandelt eine Integer-Zahl in einen String um std::string IntToString(int i); //Gibt mit einer Wahrscheinlichkeit P true zurück, sonst false bool BernoulliDistr(double P); //Abstand zwischen (x1,y1) und (x2,y2) int Distance(int x1, int y1, int x2, int y2, int grid_size); //Normal und Log-Normalverteilung erzeugen double NormalDistr(double my, double sigma); double LogNormal(double ev, double var); #endif // TOOLS_HPP_INCLUDED Seite 1
-
Upload
benjamin-faerber -
Category
Science
-
view
88 -
download
0
Transcript of Tools.hpp
tools.hpp
#ifndef TOOLS_HPP_INCLUDED
#define TOOLS_HPP_INCLUDED
#include <string>
//Zeigt den Fortschritt an
void ProgressBar(int iteration, int num_iterations);
//Wandelt eine Integer-Zahl in einen String um
std::string IntToString(int i);
//Gibt mit einer Wahrscheinlichkeit P true zurück, sonst false
bool BernoulliDistr(double P);
//Abstand zwischen (x1,y1) und (x2,y2)
int Distance(int x1, int y1, int x2, int y2, int grid_size);
//Normal und Log-Normalverteilung erzeugen
double NormalDistr(double my, double sigma);
double LogNormal(double ev, double var);
#endif // TOOLS_HPP_INCLUDED
Seite 1