EcoliSimulator  2.0.1a
distr_initial_unif.cpp File Reference
#include <iostream>
#include <cmath>
#include "constants.h"

Functions

double unifRand ()
 
int dist_iniz (double x[], double x0[], double R, unsigned int num_dist)
 

Function Documentation

int dist_iniz ( double  x[],
double  x0[],
double  R,
unsigned int  num_dist 
)

This function set the initial position.

Parameters
x[]position of pacterium (to be set)
x0[]initial position, set in the menu
Rradius distribution
typeof distribution, see menu
Returns
if the initial position change return 1, otherwise 0. If the position didn't change the initial condition for this bacterium are the same as the previous one, so we don't have to perform initial-condition calculation.
double unifRand ( )