title: Does iOS have time-series smoothing, say kernel or gaussian, built in? (Perhaps in CoreImage or CoreAudio?)
body: <p>Say you have an array of 1000 <code>CGFloat</code>s</p>
  
  <pre><code>...
  at 13.0:   1000.001
  at 14.0:   1152.934
  at 15.0:   1000.909
  at 16.0:   1200.666
  ...
  </code></pre>
  
  <p>And you'll be needing a value at any value</p>
  
  <p>smoothed(13.40) == about 1085, say</p>
  
  <p><a href="https://i.stack.imgur.com/oA0nM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oA0nM.png" alt="enter image description here"></a></p>
  
  <p>So, we're talking about something like <strong>kernel smoothing</strong> - a window function. Such as</p>
  
  <ul>
  <li>a gaussian kernel smoother</li>
  <li>kernel average smoother</li>
  <li>local linear regression smoother</li>
  </ul>
  
  <p>Excellent article: <a href="https://en.wikipedia.org/wiki/Kernel_smoother" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Kernel_smoother</a></p>
  
  <p><a href="https://i.stack.imgur.com/JomC3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JomC3.png" alt="enter image description here"></a></p>
  
  <p>Does iOS have something like this built-in to one of the GPU frameworks?</p>
  
  <p>It's completely common for computers to do this sort of thing constantly, particularly in graphics subsystems.</p>
  
  <p>How to do this in iOS on the GPU ... perhaps in Core audio or the <code>Compute</code> stack? (Of course it's easy to do by hand in Swift.)</p>