EcoliSimulator
2.0.1a
|
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <cmath>
#include "constants.h"
Macros | |
#define | max(a, b) ( ((a) > (b)) ? (a) : (b) ) |
#define | min(a, b) ( ((a) < (b)) ? (a) : (b) ) |
Functions | |
void | fraction_run_file (string file_write, int cont_salti, vector< int > tau_vector, int n_tau_x, double dx, double tau_max, double somma_tau) |
#define max | ( | a, | |
b | |||
) | ( ((a) > (b)) ? (a) : (b) ) |
#define min | ( | a, | |
b | |||
) | ( ((a) < (b)) ? (a) : (b) ) |
void fraction_run_file | ( | string | file_write, |
int | cont_salti, | ||
vector< int > | tau_vector, | ||
int | n_tau_x, | ||
double | dx, | ||
double | tau_max, | ||
double | somma_tau | ||
) |
This function calculate the fraction of run/tumble bigger then a given value.
file_write | we save the data in the file pass by file_write |
cont_salti | number total jumps |
vector | of run/tumble (t) within the range of the index i, i.e. tau_min*dx*(i-1)<t< tau_min*dx*i |
n_tau_x | number of divition of length run/tumble |
dx | time-step in divition of the run/tumble interval |
tau_max | maximum tau to be display, left limit of the interval [0,tau_max] where we do the fraction of run |
somma_tau | sum of all the tau of the same kind (up/down/const etc. gradient) |