<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Sgolaydiff.m</id>
	<title>Sgolaydiff.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Sgolaydiff.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Sgolaydiff.m&amp;action=history"/>
	<updated>2026-10-02T01:11:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Sgolaydiff.m&amp;diff=10281&amp;oldid=prev</id>
		<title>Kuprov: version fragment to 2.13 per IK 2026-08-30</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Sgolaydiff.m&amp;diff=10281&amp;oldid=prev"/>
		<updated>2026-08-30T09:13:03Z</updated>

		<summary type="html">&lt;p&gt;version fragment to 2.13 per IK 2026-08-30&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:13, 30 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;[[fftdiff.m]], [[fourdif.m]], [[pseudomodulation.m]], [[apodisation.m]], [[Kernel utilities]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;[[fftdiff.m]], [[fourdif.m]], [[pseudomodulation.m]], [[apodisation.m]], [[Kernel utilities]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;''Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]]''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;''Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]]''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=Sgolaydiff.m&amp;diff=10143&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for sgolaydiff.m created from the source header and implementation</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Sgolaydiff.m&amp;diff=10143&amp;oldid=prev"/>
		<updated>2026-08-30T08:21:47Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for sgolaydiff.m created from the source header and implementation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:sgolaydiff.m}} __NOTOC__&lt;br /&gt;
Savitzky-Golay differentiation of noisy sampled signals by local least-squares polynomial fitting.&lt;br /&gt;
&lt;br /&gt;
A window of npoints consecutive samples is placed around each sample of the signal; the window is centred on the sample in the interior of the array and slides to the nearest fully contained position at the two ends, so the fits are sided there. The local sample offsets are referred to the current sample and divided by their largest absolute value, a Vandermonde matrix of the scaled offsets is built up to poly_order, and the local polynomial coefficients are obtained for all M signals at once by QR-backed least squares. The requested derivative at the expansion point is then factorial(der_order) times the coefficient of the corresponding power, divided by the scaling factor raised to der_order. The independent variable is the sample index, so the result refers to a unit sampling step.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     dy=sgolaydiff(y,der_order,npoints,poly_order)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     y          - N-by-M signal matrix; rows are samples and&lt;br /&gt;
                  columns are independent signals&lt;br /&gt;
 &lt;br /&gt;
     der_order  - derivative order; order 0 returns the&lt;br /&gt;
                  smoothed signal&lt;br /&gt;
 &lt;br /&gt;
     npoints    - odd number of points in the local least-&lt;br /&gt;
                  squares window&lt;br /&gt;
 &lt;br /&gt;
     poly_order - order of the local polynomial&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     dy         - N-by-M derivative matrix on a unit-step&lt;br /&gt;
                  uniform grid&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
sgolaydiff(s,1,7,3) is recommended for differentiating EPR spectra; use a tight integration tolerance and increase the number of field/frequency axis points.&lt;br /&gt;
&lt;br /&gt;
The window length must be odd and must not exceed the number of samples, the derivative order must not exceed the polynomial order, and the polynomial order must be smaller than the window length.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[fftdiff.m]], [[fourdif.m]], [[pseudomodulation.m]], [[apodisation.m]], [[Kernel utilities]]&lt;br /&gt;
&lt;br /&gt;
''Version 2.11, authors: [[Ilya Kuprov]]''&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>