<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://csml-wiki.northwestern.edu/index.php?action=history&amp;feed=atom&amp;title=Autocorrelation</id>
	<title>Autocorrelation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://csml-wiki.northwestern.edu/index.php?action=history&amp;feed=atom&amp;title=Autocorrelation"/>
	<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;action=history"/>
	<updated>2026-04-09T11:49:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=861&amp;oldid=prev</id>
		<title>Administrator at 15:00, 11 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=861&amp;oldid=prev"/>
		<updated>2025-05-11T15:00:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:00, 11 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; is a plain text file. Lines starting with a &#039;#&#039; will be ignored (use this feature to insert column descriptions and other information into your simulation data).  If &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; ends with &#039;&amp;lt;tt&amp;gt;.gz&amp;lt;/tt&amp;gt;&#039; the file is assumed to be compressed with [http://en.wikipedia.org/wiki/Gzip gzip] and will be decompressed on the fly.  Note that this happens in memory; no decompressed version of the file is written to disk.  This has the advantage that no additional disk space is required and that no additional time is required to compress the data again after the analysis.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; is a plain text file. Lines starting with a &#039;#&#039; will be ignored (use this feature to insert column descriptions and other information into your simulation data).  If &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; ends with &#039;&amp;lt;tt&amp;gt;.gz&amp;lt;/tt&amp;gt;&#039; the file is assumed to be compressed with [http://en.wikipedia.org/wiki/Gzip gzip] and will be decompressed on the fly.  Note that this happens in memory; no decompressed version of the file is written to disk.  This has the advantage that no additional disk space is required and that no additional time is required to compress the data again after the analysis.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To read from standard input instead of a file, specify &#039;&#039;STDIN&#039;&#039; as the filename.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;To read from standard input instead of a file, specify &#039;&#039;STDIN&#039;&#039; as the filename&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. &#039;&#039;STDIN.gz&#039;&#039; is also permitted to indicate a compressed data stream&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When redirecting the output, note that the &#039;&#039;&#039;autocorrelation function&#039;&#039;&#039; for each column is written to standard output, whereas the &#039;&#039;&#039;autocorelation time&#039;&#039;&#039; (and all other information) is written to standard error.  See [[#Special usage notes|usage notes]] below.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;When redirecting the output, note that the &#039;&#039;&#039;autocorrelation function&#039;&#039;&#039; for each column is written to standard output, whereas the &#039;&#039;&#039;autocorelation time&#039;&#039;&#039; (and all other information) is written to standard error.  See [[#Special usage notes|usage notes]] below.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=859&amp;oldid=prev</id>
		<title>Administrator at 18:22, 10 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=859&amp;oldid=prev"/>
		<updated>2025-05-10T18:22:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:22, 10 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-d&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only print the function (autocorrelation, cross correlation, or mean squared displacement) up to the lagtime specified, even when using an FFT-based calculation (which in turn is enabled via the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-f&lt;/del&gt; option). Since the FFT-based calculation yields these functions over the entire domain at no additional computational cost, normally the maximum lagtime is ignored for printing purposes; this option overrides this.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-d&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only print the function (autocorrelation, cross correlation, or mean squared displacement) up to the lagtime specified, even when using an FFT-based calculation (which in turn is enabled via the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–f&lt;/ins&gt; option). Since the FFT-based calculation yields these functions over the entire domain at no additional computational cost, normally the maximum lagtime is ignored for printing purposes; this option overrides this.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using an FFT-based calculation (which in turn is enabled via the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-f&lt;/del&gt; option). Normally, use of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-f&lt;/del&gt; truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and is primarily used for debugging purposes).  However, it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using an FFT-based calculation (which in turn is enabled via the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–f&lt;/ins&gt; option). Normally, use of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–f&lt;/ins&gt; truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and is primarily used for debugging purposes).  However, it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-c&lt;/del&gt;&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-m&lt;/del&gt;&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–c&lt;/ins&gt;&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;–m&lt;/ins&gt;&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=858&amp;oldid=prev</id>
		<title>Administrator at 18:21, 10 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=858&amp;oldid=prev"/>
		<updated>2025-05-10T18:21:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:21, 10 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;e&lt;/del&gt;&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Disable&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;truncating&lt;/del&gt; the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;set&lt;/del&gt; when using FFT-based calculation (which in turn is enabled via the -f option). &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Normally,&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use of&lt;/del&gt; -&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;f&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;truncates&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;data&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;set&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;to&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;multiple&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;of&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;256&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(for&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;more&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;than&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10240&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;samples)&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and&lt;/del&gt; is &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;primarily used&lt;/del&gt; for &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;debugging&lt;/del&gt; purposes&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;).&lt;/del&gt;  &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;However,&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without&lt;/del&gt; this&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; option&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;d&lt;/ins&gt;&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Only&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;print&lt;/ins&gt; the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;function&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(autocorrelation, cross correlation, or mean squared displacement) up to the lagtime specified, even&lt;/ins&gt; when using&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; an&lt;/ins&gt; FFT-based calculation (which in turn is enabled via the -f option). &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Since&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FFT&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;based&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;calculation&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;yields&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;these&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;functions&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;over&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;entire&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;domain&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;at&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;no&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;additional&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;computational&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cost,&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;normally&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;maximum&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lagtime&lt;/ins&gt; is &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ignored&lt;/ins&gt; for &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;printing&lt;/ins&gt; purposes&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;option&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;overrides&lt;/ins&gt; this.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using an FFT-based calculation (which in turn is enabled via the -f option). Normally, use of -f truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and is primarily used for debugging purposes).  However, it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=857&amp;oldid=prev</id>
		<title>Administrator at 16:03, 10 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=857&amp;oldid=prev"/>
		<updated>2025-05-10T16:03:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:03, 10 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;u-option&quot;&amp;gt;-u&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Do not normalize the correlation function. Without this option, the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autocorelation&lt;/del&gt; function C(t) or cross&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-&lt;/del&gt;correlation function X(t) is normalized by C(0) or X(0), respectively.  Note that this option disables calculation of the autocorrelation time (see [[#Algorithm|algorithm]] below). This option has no meaning in conjunction with the –m option (MSD calculation).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;u-option&quot;&amp;gt;-u&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Do not normalize the correlation function. Without this option, the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autocorrelation&lt;/ins&gt; function C(t) or cross&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;correlation function X(t) is normalized by C(0) or X(0), respectively.  Note that this option disables calculation of the autocorrelation time (see [[#Algorithm|algorithm]] below). This option has no meaning in conjunction with the –m option (MSD calculation).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;x-option&quot;&amp;gt;-x&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only compute the cross term in the correlation function, i.e., the first term in C(t) or X(t) (see [[#Algorithm|algorithm]] below). This option has no meaning in conjunction with the –m option (MSD calculation).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;x-option&quot;&amp;gt;-x&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only compute the cross term in the correlation function, i.e., the first term in C(t) or X(t) (see [[#Algorithm|algorithm]] below). This option has no meaning in conjunction with the –m option (MSD calculation).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=856&amp;oldid=prev</id>
		<title>Administrator at 16:01, 10 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=856&amp;oldid=prev"/>
		<updated>2025-05-10T16:01:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:01, 10 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Download binary versions (Linux and OS X) ===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Download binary versions (Linux and OS X) ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The current version is 3.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;93&lt;/del&gt;, dated &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;December&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2013&lt;/del&gt;.  It is strongly recommend that you upgrade from any earlier version.  You can download binary versions of this program here, but note that this was created for internal lab use - we cannot provide any support.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The current version is 3.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;96&lt;/ins&gt;, dated &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;May&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2025&lt;/ins&gt;.  It is strongly recommend that you upgrade from any earlier version.  You can download binary versions of this program here, but note that this was created for internal lab use - we cannot provide any support.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(binaries coming soon, pending minor improvements)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(binaries coming soon, pending minor improvements)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=855&amp;oldid=prev</id>
		<title>Administrator at 16:00, 10 May 2025</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=855&amp;oldid=prev"/>
		<updated>2025-05-10T16:00:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:00, 10 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;o-option&quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Write autocorrelation function to &#039;&#039;filename&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;u-option&quot;&amp;gt;-u&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Do not normalize the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autocorrelation&lt;/del&gt; function. Without this option, the autocorelation function C(t) is normalized by C(0).  Note that this option disables calculation of the autocorrelation time (see [[#Algorithm|algorithm]] below).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;u-option&quot;&amp;gt;-u&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Do not normalize the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;correlation&lt;/ins&gt; function. Without this option, the autocorelation function C&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(t) or cross-correlation function X&lt;/ins&gt;(t) is normalized by C(0)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; or X(0), respectively&lt;/ins&gt;.  Note that this option disables calculation of the autocorrelation time (see [[#Algorithm|algorithm]] below&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;). This option has no meaning in conjunction with the –m option (MSD calculation&lt;/ins&gt;).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;x-option&quot;&amp;gt;-x&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only compute the cross term in the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;autocorrelation&lt;/del&gt; function, i.e., the first term in C(t) (see [[#Algorithm|algorithm]] below).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;x-option&quot;&amp;gt;-x&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Only compute the cross term in the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;correlation&lt;/ins&gt; function, i.e., the first term in C&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(t) or X&lt;/ins&gt;(t) (see [[#Algorithm|algorithm]] below&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;). This option has no meaning in conjunction with the –m option (MSD calculation&lt;/ins&gt;).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Interpreting output ===&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Interpreting output ===&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=595&amp;oldid=prev</id>
		<title>Administrator: /* Special usage notes */</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=595&amp;oldid=prev"/>
		<updated>2015-10-31T16:11:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Special usage notes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:11, 31 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;Note that, per standard GNU style, options can be combined. Thus, for example, &#039;&amp;lt;tt&amp;gt;-a -e -f&amp;lt;/tt&amp;gt;&#039; can be specified as &#039;&amp;lt;tt&amp;gt;-aef&amp;lt;/tt&amp;gt;&#039;.&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;Note that, per standard GNU style, options can be combined. Thus, for example, &#039;&amp;lt;tt&amp;gt;-a -e -f&amp;lt;/tt&amp;gt;&#039; can be specified as &#039;&amp;lt;tt&amp;gt;-aef&amp;lt;/tt&amp;gt;&#039;.&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;(coming soon)&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;more tips &lt;/ins&gt;coming soon)&amp;lt;/li&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=594&amp;oldid=prev</id>
		<title>Administrator: /* Options */</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=594&amp;oldid=prev"/>
		<updated>2015-10-31T16:10:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Options&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:10, 31 October 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using FFT-based calculation (which in turn is enabled via the -f option). Normally, use of -f truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and primarily used for debugging purposes).  However, it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using FFT-based calculation (which in turn is enabled via the -f option). Normally, use of -f truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty (and&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; is&lt;/ins&gt; primarily used for debugging purposes).  However, it makes the results identical to those obtained without using the FFT. (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=445&amp;oldid=prev</id>
		<title>Administrator: /* Options */</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=445&amp;oldid=prev"/>
		<updated>2014-11-24T18:15:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Options&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:15, 24 November 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;a-option&quot;&amp;gt;-a&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the autocorrelation time by integrating the absolute autocorrelation function. This is useful to eliminate cancellations due to anticorelations (which would result in an underestimation of the correlation time), but also will enhance noise in the tail of the autocorrelation function (where the function fluctuates around zero; normally such fluctuations cancel out).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;c-option&quot;&amp;gt;-c n:m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Compute the cross correlation of columns &amp;lt;tt&amp;gt;n&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;m&amp;lt;/tt&amp;gt;. Note: columns are numbered from 0.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using FFT-based calculation (which in turn is enabled via the -f option). Normally, use of -f truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty.  However, it makes the results identical to those obtained without using the FFT.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;e-option&quot;&amp;gt;-e&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Disable truncating the data set when using FFT-based calculation (which in turn is enabled via the -f option). Normally, use of -f truncates the data set to a multiple of 256 (for more than 10240 samples) or a multiple of 16384 (for more than 10&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; samples).  Note that disabling this truncation carries a significant speed penalty&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; (and primarily used for debugging purposes)&lt;/ins&gt;.  However, it makes the results identical to those obtained without using the FFT.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; (If the size of the original data set is already a multiple of 256 (or 16384), then the results with and without FFT are identical even without this option.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;f-option&quot;&amp;gt;-f&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Employ a Fast Fourier Transform to greatly reduce the computational effort, by analyzing the data as a convolution in the frequency domain. This works for the autocorrelation function ([http://mathworld.wolfram.com/Wiener-KhinchinTheorem.html Wiener-Khinchin Theorem]) as well as for the cross correlation (option &amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;) ([http://mathworld.wolfram.com/Cross-CorrelationTheorem.html Cross-Correlation Theorem]) and the mean squared displacement (option &amp;lt;tt&amp;gt;-m&amp;lt;/tt&amp;gt;). Note that this requires computing the function over the entire time domain; therefore, for very rapidly decaying functions, where &#039;&#039;maxtime&#039;&#039; can be kept small, conventional evaluation might be faster.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;tt id=&quot;m-option&quot;&amp;gt;-m&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;Calculate the mean squared displacement (MSD). See [[#Algorithm|algorithm]] below for the relation between the MSD and the autocorrelation function.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=402&amp;oldid=prev</id>
		<title>Administrator: /* Algorithm */</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Autocorrelation&amp;diff=402&amp;oldid=prev"/>
		<updated>2014-07-17T15:24:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Algorithm&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:24, 17 July 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math&amp;gt;\tau = \sum_{i=0}^{\mathrm{maxtime}} [C(i)/C(0)]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;math&amp;gt;\tau = \sum_{i=0}^{\mathrm{maxtime}} [C(i)/C(0)]&amp;lt;/math&amp;gt;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Some more nomenclature: Sometimes the autocorrelation refers to the &#039;&#039;cross term&#039;&#039; &amp;lt;math&amp;gt;\langle a_j a_{j+t}\rangle&amp;lt;/math&amp;gt; (where the brackets indicate averaging over &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;), which is the first term in &amp;lt;math&amp;gt;C(t)&amp;lt;/math&amp;gt;. In that case, &amp;lt;math&amp;gt;C(t)/C(0)&amp;lt;/math&amp;gt; is referred to as the &#039;&#039;&#039;autocorrelation coefficient&#039;&#039;&#039; or autocorrelation &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;coeffient&lt;/del&gt; &#039;&#039;function.&#039;&#039; To compute the cross term in &#039;&#039;&#039;AC&#039;&#039;&#039;, specify the [[#x-option|&amp;lt;tt&amp;gt;-x&amp;lt;/tt&amp;gt;]] option (or [[#u-option|&amp;lt;tt&amp;gt;-u&amp;lt;/tt&amp;gt;]] [[#x-option|&amp;lt;tt&amp;gt;-x&amp;lt;/tt&amp;gt;]] to suppress normalization).&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Some more nomenclature: Sometimes the autocorrelation refers to the &#039;&#039;cross term&#039;&#039; &amp;lt;math&amp;gt;\langle a_j a_{j+t}\rangle&amp;lt;/math&amp;gt; (where the brackets indicate averaging over &amp;lt;math&amp;gt;j&amp;lt;/math&amp;gt;), which is the first term in &amp;lt;math&amp;gt;C(t)&amp;lt;/math&amp;gt;. In that case, &amp;lt;math&amp;gt;C(t)/C(0)&amp;lt;/math&amp;gt; is referred to as the &#039;&#039;&#039;autocorrelation coefficient&#039;&#039;&#039; or autocorrelation &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;coefficient&lt;/ins&gt; &#039;&#039;function.&#039;&#039; To compute the cross term in &#039;&#039;&#039;AC&#039;&#039;&#039;, specify the [[#x-option|&amp;lt;tt&amp;gt;-x&amp;lt;/tt&amp;gt;]] option (or [[#u-option|&amp;lt;tt&amp;gt;-u&amp;lt;/tt&amp;gt;]] [[#x-option|&amp;lt;tt&amp;gt;-x&amp;lt;/tt&amp;gt;]] to suppress normalization).&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For two time series &amp;lt;math&amp;gt;a_1, \ldots, a_N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_1, \ldots, b_N&amp;lt;/math&amp;gt;, the &#039;&#039;&#039;covariance&#039;&#039;&#039; is defined as&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For two time series &amp;lt;math&amp;gt;a_1, \ldots, a_N&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;b_1, \ldots, b_N&amp;lt;/math&amp;gt;, the &#039;&#039;&#039;covariance&#039;&#039;&#039; is defined as&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>