**brownian_motion_simulation_test**,
a C++ code which
calls brownian_motion_simulation() to
simulate Brownian motion in an M-dimensional region,
creating graphics files for processing by gnuplot.

The computer code and data files described and made available on this web page are distributed under the MIT license

brownian_motion_simulation, a C++ code which simulates Brownian motion in an M-dimensional region, creating graphics files that can be displayed with gnuplot.

- brownian_motion_simulation_test.cpp, a sample calling program.
- brownian_motion_simulation_test.sh, runs all the tests.
- brownian_motion_simulation_test.txt, the output file.

- motion_1d_data.txt, data for a Brownian motion trajectory in 1D.
- motion_1d_commands.txt, gnuplot commands to plot data for a Brownian motion trajectory in 1D.
- motion_1d.png, a plot of a Brownian motion trajectory in 1D, with time as second dimension.
- motion_2d_data.txt, data for a Brownian motion trajectory in 2D.
- motion_2d_commands.txt, gnuplot commands to plot data for a Brownian motion trajectory in 2D.
- motion_2d.png, a plot of a Brownian motion trajectory in 2D.
- displacement_1d_data.txt, data for Brownian displacements in 1D.
- displacement_1d_commands.txt, gnuplot commands to plot Brownian displacements in 1D.
- displacement_1d.png, a plot of squared displacements, averaged over several 1D Brownian motions.
- displacement_2d_data.txt, data for Brownian displacements in 2D.
- displacement_2d_commands.txt, gnuplot commands to plot Brownian displacements in 2D.
- displacement_2d.png, a plot of squared displacements, averaged over several 2D Brownian motions.
- displacement_3d_data.txt, data for Brownian displacements in 3D.
- displacement_3d_commands.txt, gnuplot commands to plot Brownian displacements in 3D.
- displacement_3d.png, a plot of squared displacements, averaged over several 3D Brownian motions.