<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://megcore.nih.gov/index.php?action=history&amp;feed=atom&amp;title=Sam_entropy</id>
	<title>Sam entropy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://megcore.nih.gov/index.php?action=history&amp;feed=atom&amp;title=Sam_entropy"/>
	<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_entropy&amp;action=history"/>
	<updated>2026-04-07T12:10:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://megcore.nih.gov/index.php?title=Sam_entropy&amp;diff=3962&amp;oldid=prev</id>
		<title>Nugenta at 18:40, 12 March 2019</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_entropy&amp;diff=3962&amp;oldid=prev"/>
		<updated>2019-03-12T18:40: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 14:40, 12 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;  FilterType: Type of filter (FFT vs. IIR) used for bandpass&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;  FilterType: Type of filter (FFT vs. IIR) used for bandpass&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;  TimeStep: Sampling interval for output image&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;  TimeStep: Sampling interval for output image&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;  ImageMetric: Must be RankVectorEntropy, with the TAU&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; (&amp;gt;0)&lt;/del&gt; and DIM&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; (4 or 5)&lt;/del&gt; parameters defined&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;  ImageMetric: Must be RankVectorEntropy, with the TAU and DIM parameters defined&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;  RemoveBaseline: Specifies if and how a baseline should be removed&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;  RemoveBaseline: Specifies if and how a baseline should be removed&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;  CovType: must be GLOBAL&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;  CovType: must be GLOBAL&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&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;  ImageFormat: Designates whether the weights are in +orig or +tlrc space&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;  ImageFormat: Designates whether the weights are in +orig or +tlrc space&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;  ImageDirectory: Directory where the output images are written, default is the SAM directory&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;  ImageDirectory: Directory where the output images are written, default is the SAM directory&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;  PrefixLength: Number of characters in the MEG dataset&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; name&lt;/del&gt; used for naming MRI and output files.&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;  PrefixLength: Number of characters in the MEG dataset used for naming MRI and output files.&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;==Output Files==&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;==Output Files==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
	<entry>
		<id>https://megcore.nih.gov/index.php?title=Sam_entropy&amp;diff=3961&amp;oldid=prev</id>
		<title>Nugenta: Created page with &quot; Return to Source Localization - SAM  ==Description==  The sam_entropy program computes the rank-vector entropy time series for a single-state d...&quot;</title>
		<link rel="alternate" type="text/html" href="https://megcore.nih.gov/index.php?title=Sam_entropy&amp;diff=3961&amp;oldid=prev"/>
		<updated>2019-03-12T18:40:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Source_Localization_-_SAM&quot; title=&quot;Source Localization - SAM&quot;&gt; Return to Source Localization - SAM&lt;/a&gt;  ==Description==  The sam_entropy program computes the rank-vector entropy time series for a single-state d...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Source Localization - SAM | Return to Source Localization - SAM]]&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
The sam_entropy program computes the rank-vector entropy time series for a single-state dataset. The output image reflects the change in entropy relative to the mean entropy. Computing the rank vector entropy requires choosing several parameters. The embedding space dimension W, the integrator time constant tau, and a lag D. For sam_entropy, W must be either 4 or 5, and the lag is calculated from the sampling rate and the upper frequency limit. Entropy is calculated by first transforming the time series to a rank vector. A sub-window of W samples (with a lag of D between samples) is chosen from the time series. The measured signal from the W samples is replaced with the rank of each value. For a window W, there are W! possible rank vectors. A simple lookup table is used to convert the rank vector to a single state symbol. The window is then advanced by a single sample, and the same calculation occurs for the next data vector. As state symbols are generated, they are accumulated in a probability histogram, from which entropy can be calculated. In order to allow the distribution of states to vary over time, a decay parameter (tau) is defined for the histogram counts. Intuitively, this measure of entropy, or complexity, represents the amount of information which can be encoded in the signal at any given time. &lt;br /&gt;
&lt;br /&gt;
This program is experimental. Multi-epoch data must be stored continuously.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&lt;br /&gt;
  sam_epi -r &amp;lt;dataset_name&amp;gt; -m &amp;lt;parameter_file_name&amp;gt; [options]&lt;br /&gt;
&lt;br /&gt;
The -r flag designates the dataset name (with or without the .ds suffix), and -m designates the parameter file name.&lt;br /&gt;
&lt;br /&gt;
Other options:&lt;br /&gt;
&lt;br /&gt;
  -v  Verbose mode, without this flag sam_entropy works silently except for error messages&lt;br /&gt;
  -n  Normalize by the variance&lt;br /&gt;
&lt;br /&gt;
Required Parameters:&lt;br /&gt;
&lt;br /&gt;
  CovBand: Bandpass for the covariance matrices (and directory for weights files)&lt;br /&gt;
  ImageBand: Bandpass for the image&lt;br /&gt;
  SmoothBand: designates the lowpass filter for smoothing the Hilbert envelope&lt;br /&gt;
  FilterType: Type of filter (FFT vs. IIR) used for bandpass&lt;br /&gt;
  TimeStep: Sampling interval for output image&lt;br /&gt;
  ImageMetric: Must be RankVectorEntropy, with the TAU (&amp;gt;0) and DIM (4 or 5) parameters defined&lt;br /&gt;
  RemoveBaseline: Specifies if and how a baseline should be removed&lt;br /&gt;
  CovType: must be GLOBAL&lt;br /&gt;
&lt;br /&gt;
Optional Parameters:&lt;br /&gt;
&lt;br /&gt;
  ImageFormat: Designates whether the weights are in +orig or +tlrc space&lt;br /&gt;
  ImageDirectory: Directory where the output images are written, default is the SAM directory&lt;br /&gt;
  PrefixLength: Number of characters in the MEG dataset name used for naming MRI and output files.&lt;br /&gt;
&lt;br /&gt;
==Output Files==&lt;br /&gt;
&lt;br /&gt;
The output consists of a single 3D+time NIFTI image of rank vector entropy.&lt;/div&gt;</summary>
		<author><name>Nugenta</name></author>
	</entry>
</feed>