_deltaF=5;// half of the time interval that used to calculate instantaneous velocity of ped i. Here v_i = (X(t+deltaF) - X(t+deltaF))/(2*deltaF). X is location.
_deltaT=160;// the time interval to calculate the classic flow
_DoesUseMethodA=false;// Method A (Zhang2011a)
_DoesUseMethodB=false;// Method B (Zhang2011a)
_DoesUseMethodC=false;// Method C //calculate and save results of classic in separate file
...
...
@@ -81,7 +80,7 @@ Analysis::Analysis()
_outputGraph=false;// Whether output the data for plot the fundamental diagram each frame
_calcIndividualFD=false;//Adjust whether analyze the individual density and velocity of each pedestrian in stationary state (ALWAYS VORONOI-BASED)
_vComponent="B";// to mark whether x, y or x and y coordinate are used when calculating the velocity
_IgnoreBackwardMovement=false;
_grid_size_X=0.10;// the size of the grid
_grid_size_Y=0.10;
_lowVertexX=0;// LOWest vertex of the geometry (x coordinate)
All notable changes to this project will be documented in this file.
## Added
## JPSreport [unreleased]
## Changed
### Added
## Fixed
- Two options `startframe` and `stopframe` are added for each measurement area for method D to assign the time periods for analysis.
- Individual density based on Voronoi method is added for one dimensional case in the output file (Individual headway is moved to the 5th column).
- z-position of each measurement area can be assigned in inifile so that the trajectories in geometries with several floors can be analyzed.
- The option `plot_time_series` is available for each measurement area.
- The option `frame_interval` for method A now can have different values for different measurement area.
- The option `ignore_backward_movement` and `set_movement_direction` are added to indicate the movement direction for velocity calculation.
### Changed
- The swith for calculating Individual FD is arraged for each measurement area.
- The setting for velocity calculation is changed in inifile. Now velocity can be calculated by projecting to any direction by setting the parameter `set_movement_direction`. The backward movement against the target direction can be considered or removed by setting the parameter `ignore_backward_movement`.
# JPSreport v0.8
- The way for reading .txt format trajectory file is changed. Now the order of each column in trajectory file is not so important. The trajectory file from JPScore can be analyzed directly.
- The algorithm for loading the '.txt' format trajectory file is modified. Now the order of each column in the file is not so important. JPSreport will search for meaning of each column from the comments (for example"#ID FR X Y Z VD").
## Added
### Fixed
- The script for plot Voronoi cells is modified so that it work when the trajectory files are not the in the same location as the inifile.
- The bug related the issue #54 is fixed.
- The bug regarding to the issue #43 is fixed.
## JPSreport v0.8
### Added
- A switch is added in the infile for `method_D` to turn off plotting Voronoi diagrams. Now it is possible to only output data for the diagram but not plot figures.
...
...
@@ -26,7 +53,7 @@
- A warning will will be given and the program stops if trajectory for a given pedestrian ID is not continuous.
## Changed
### Changed
- Scripts "_Plot_cell_rho.py" and "_Plot_cell_v.py" are modified. Now the geometry is also plotted when plotting voronoi cells.
...
...
@@ -34,7 +61,7 @@
- Scripts "_Plot_FD.py" is modified!
## Fixed
### Fixed
- Output data file "Folw\_NT\_xxxx.dat" is closed before calling script for plotting N-t diagram.
...
...
@@ -51,16 +78,17 @@
- when path of trajectory is not given absolutely, the default location is the same folder with the inifile
# JPSreport v0.7
## JPSreport v0.7
## Added
### Added
- Added four demos as examples for using JPSreport
- Added the option for specifying the location of scripts in configuration file.
- Embedded python scripts (**\_Plot_N\_t.py**, **\_Plot_timeseries\_rho_v.py**) for plotting N-t diagram (Method A), time series of density/velocity diagram (Method C and D) and Voronoi diagrams (Method D).
- Added python script (**SteadyState.py**) for automatically detecting steady state of pedestrian flow based on time series of density and velocity. When plotting fundamental diagrams normally only data under steady state are used due to its generality.
- Added python script (**\_Plot_FD.py**) for plotting fundamenatl diagram based on the detected steady state.
## Changed
### Changed
- Changed name of some variables in configuration file:
...
...
@@ -96,6 +124,6 @@ removing these pedestrians from the list.
- More than one sub rooms in one geometry can be analysed independently.
## Fixed
### Fixed
- Fixed bug for dealing with obstacles inside geometry.
- Fixed bug for dealing with obstacles inside geometry.