SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Andere mochten auch

Structure-odor relations: a modern perspective
Structure-odor relations: a modern perspectiveStructure-odor relations: a modern perspective
Structure-odor relations: a modern perspectiveVorname Nachname
 
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...Dynamical symmetry breaking in vibration-assisted transport through nanostruc...
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...Vorname Nachname
 
Smell in real noses: how the environment changes vibrations
Smell in real noses: how the environment changes vibrationsSmell in real noses: how the environment changes vibrations
Smell in real noses: how the environment changes vibrationsVorname Nachname
 
Electron transport in one dimensional nanosystems
Electron transport in one dimensional nanosystemsElectron transport in one dimensional nanosystems
Electron transport in one dimensional nanosystemsVorname Nachname
 

Andere mochten auch (6)

Structure-odor relations: a modern perspective
Structure-odor relations: a modern perspectiveStructure-odor relations: a modern perspective
Structure-odor relations: a modern perspective
 
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...Dynamical symmetry breaking in vibration-assisted transport through nanostruc...
Dynamical symmetry breaking in vibration-assisted transport through nanostruc...
 
Smell in real noses: how the environment changes vibrations
Smell in real noses: how the environment changes vibrationsSmell in real noses: how the environment changes vibrations
Smell in real noses: how the environment changes vibrations
 
Electron transport in one dimensional nanosystems
Electron transport in one dimensional nanosystemsElectron transport in one dimensional nanosystems
Electron transport in one dimensional nanosystems
 
Statistics.cpp
Statistics.cppStatistics.cpp
Statistics.cpp
 
Econophysics
EconophysicsEconophysics
Econophysics
 

Mehr von Vorname Nachname (12)

Leni souza
Leni souzaLeni souza
Leni souza
 
Alien life forms
Alien life formsAlien life forms
Alien life forms
 
Spaceengine2
Spaceengine2Spaceengine2
Spaceengine2
 
Structural Language
Structural LanguageStructural Language
Structural Language
 
Language
LanguageLanguage
Language
 
Spaceengine2
Spaceengine2Spaceengine2
Spaceengine2
 
Spaceengine
SpaceengineSpaceengine
Spaceengine
 
Topology and Electrostatics
Topology and Electrostatics Topology and Electrostatics
Topology and Electrostatics
 
calculation of currents in nanowires
calculation of currents in nanowirescalculation of currents in nanowires
calculation of currents in nanowires
 
Summerpoject 2005
Summerpoject 2005Summerpoject 2005
Summerpoject 2005
 
Aspelmeyer
AspelmeyerAspelmeyer
Aspelmeyer
 
Arndt matter wave interferometry
Arndt matter wave interferometry Arndt matter wave interferometry
Arndt matter wave interferometry
 

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