I'm a PG student and confused. I have looked at many research articles describing mean-squared-displacement and would be grateful if anyone can see if I'm doing anything wrong in the process:
1.Run the program from t=0 to t=tend
2.Calculate the displacement, (s(t)-s(t+tau)), at each time interval and store it in a vector
3.Square the answer to number 2 and find the mean, call this answer <s^2>
Okay, so far so good?
My aim is to end up with a figure with time (t) on the x-axis and <s^2> on the y-axis (see figure attached). On the x-axis: t=100,200,300,...600. I'm not sure what to put on the y-axis.
To put it another way, for each t on the x-axis, what is the coresponding mean-squared displacement? Is it the averaged value over 100 time intervals or is it just the sum of the displacements squared over that time interval?
Any help is greatly appreciated. I hope I have explained the problem clearly, however, if anything is unclear, pleaes let me know.