<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 563: make weights for acspline independent of x-axis scale</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/563/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/563/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/563/</id><updated>2023-09-24T15:50:50.511000Z</updated><subtitle>Recent changes to 563: make weights for acspline independent of x-axis scale</subtitle><entry><title>make weights for acspline independent of x-axis scale</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/563/" rel="alternate"/><published>2023-09-24T15:50:50.511000Z</published><updated>2023-09-24T15:50:50.511000Z</updated><author><name>joerg van den hoff</name><uri>https://sourceforge.net/u/joergvandenhoff/</uri></author><id>https://sourceforge.netd85ae5173ace2590ce6a9a08f1d9d36ee619997e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;br/&gt;
rather new to gnuplot and had a hard time getting the weights right for 'acsplines'  in my data (with x-axis representing a date). by trial and error and looking at interpol.c I understand that the weights are currently depending on the scale of the x-axis: if x-scale changes by a factor of 10, weights have to be changed by a factor of 1e-3 to achieve the same smoothing  I think. this seems rather undesirable to me. coming from R (where 'smooth.spline' is controlled by a smoothing parameter that is independent of x-scale) I did not expect this.&lt;/p&gt;
&lt;p&gt;in my special use case the date axis is internally handled as secs since the epoch --  the x-values in my case cover a x-range of about 4e7  and there are about 60 points . in this case the weight has to be reduced by a factor of about 3e17 (== (4e7/60)^3) when plotting the given y-data vs. date/time rather than vs. index in order to end up with the same degree of smoothing. this strong S^3 dependence on given scale S of covered x-range makes using acsplines interactively rather cumbersome I think: identically looking data (same y, just x-axis scaled differently) might need either a weighting factor of about 1 or of about 1e-17 in order to achieve same smoothing...&lt;/p&gt;
&lt;p&gt;as far as I understand, if x-scale were normalized internally in interpol.c to, say &lt;span&gt;[0, 1]&lt;/span&gt; range  (or any other fixed range) when computing the smoothing spline the weights would then maintain an invariant meaning independent of the scale of the actual x-data as far as I can tell.  apart from backward compatibility issues I would find this much preferable. any comments?&lt;/p&gt;
&lt;p&gt;thank you,&lt;br/&gt;
joerg&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>