I am simulating a bilayer and intend to calculate some dynamical properties. I tried to calculate the relaxation time for the chains in the hydrophobic region. For this I choose a vector along the chain and calculated the angle of each chain vector from every frame. I used this angles as an input to calculate the relaxation time using FORTRAN code from this website: - http://math4u.wordpress.com/2009/09/30/autocorrelation-in-fortran/. (I have modified this code according to my system).
I have shown the plot I get in this attachment (please view).
Related to this I have two questions which I am seeking for answers or explanations.
First, I get negative values at larger times when calculating auto correlation function. Is this acceptable for bilayer chains in L-alpha phase (liquid crystal phase)?
Second, If I want to calculate the relaxation time I need to calculate the area under the graph. For that I need to fit my data to a single exponential function. Since I have negative values, how can I fit the data using exponential function, since this function takes care only positive values ?