EcoliSimulator  2.0.1a
compareModels.cpp File Reference
#include <stdio.h>
#include <vector>
#include <fstream>
#include "E_Coli.h"
#include "GnuplotGlobal.h"
#include "ErrorsDefinition.h"
#include "GlobalVariables.h"

Macros

#define SAVE   0
 

Functions

int writeScriptCompare (string namefile1, string namefile2, string nameFileScript)
 This function writes the script for the comparison of two models. More...
 
string setBaricenterName (int cont_gen_sim)
 
void lunch_gnuplot (string name_file_gnu)
 
int compareModels (std::vector< E_coli * > &batteri, std::vector< int > &which_compare, int cont_gen_sim, int save_)
 This function compares the different models which we simulate: basically it imitate the quantity in Samaey's Article. More...
 

Macro Definition Documentation

#define SAVE   0

Function Documentation

int compareModels ( std::vector< E_coli * > &  batteri,
std::vector< int > &  which_compare,
int  cont_gen_sim,
int  save_ 
)

This function compares the different models which we simulate: basically it imitate the quantity in Samaey's Article.

This function calculates and displays $\epsilon_{i,j}(t):=\frac{1}{\epsilon}\|\mathbf{E}[X_j(t)] - \mathbf{E}[X_i(t)]\|$\f and ${i,j}(t):={1}{^2}|Var[X_j(t)] - Var[X_i(t)]|^2$ I cannot really calculate like in Samaey since I have different values for theta!!

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

Parameters
name_file_gnuname of script to pass to gnuplot
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.

int writeScriptCompare ( string  namefile1,
string  namefile2,
string  nameFileScript 
)

This function writes the script for the comparison of two models.