EcoliSimulator
2.0.1a
|
#include <iostream>
#include <vector>
#include <fstream>
#include <cmath>
#include "GlobalVariables.h"
#include "GnuplotGlobal.h"
#include "ErrorsDefinition.h"
#include "setSizesTitles.hpp"
Macros | |
#define | SAVE 0 |
#define | NO_SAVE 1 |
Functions | |
void | funz_clear () |
void | lunch_gnuplot (string name_file_gnu) |
int | writeScriptBarycenter (int save_, string name, string name_file_bar, double D_msq) |
string | setBaricenterName (int cont_gen_sim) |
int | renameCpp (string oldname, string newname) |
this function is used to rename a file. More... | |
string | setFitName (int cont_gen_sim) |
int | writeLog (string what, string msg) |
this function write to the Log file. More... | |
string | setNameScriptBaricenter (string name, int save_) |
resturn the name of the file for the script of the baricenter More... | |
void | baricentro_plot (string name, std::vector< std::vector< double > > &x_t, std::vector< std::vector< double > > &y_t, int n_c, int dim_col_t, int cont_gen_sim) |
#define NO_SAVE 1 |
Constant pass to the script-writer not to save the picture
#define SAVE 0 |
Constant pass to the script-writer to save the picture
void baricentro_plot | ( | string | name, |
std::vector< std::vector< double > > & | x_t, | ||
std::vector< std::vector< double > > & | y_t, | ||
int | n_c, | ||
int | dim_col_t, | ||
int | cont_gen_sim | ||
) |
This function calculate the baricnter, plot with gnuplot
x_t | matrix of the x position x_t[time][n_bacterium] |
y_t | matrix of the y position y_t[time][n_bacterium] |
name | file where the info are saved (see line 55 - ..) |
void funz_clear | ( | ) |
This function clear the terminal (different command according to the system)
void lunch_gnuplot | ( | string | name_file_gnu | ) |
This function lunch the script name_file_gnu via gnuplot It is not used everytime since it has been written not at the beginning of the devopment of the softwer. You might want to substitute other command with this function
name_file_gnu | name of script to pass to gnuplot |
int renameCpp | ( | string | oldname, |
string | newname | ||
) |
this function is used to rename a file.
string setBaricenterName | ( | int | cont_gen_sim | ) |
This function is similar as setting names, but is only for the file of the barycenter which will be name as follows:
"baricenter-[cont_gen_sim].dat cont_gen_sim is the simulation number.
string setFitName | ( | int | cont_gen_sim | ) |
This function is similar as setting names, but is only for the file of the barycenter which will be name as follows:
"baricenter-[cont_gen_sim].dat cont_gen_sim is the simulation number.
string setNameScriptBaricenter | ( | string | name, |
int | save_ | ||
) |
resturn the name of the file for the script of the baricenter
int writeLog | ( | string | what, |
string | msg | ||
) |
this function write to the Log file.
int writeScriptBarycenter | ( | int | save_, |
string | name, | ||
string | name_file_bar, | ||
double | initialD | ||
) |
This function writes the script for the baricentro_plot