Say you have an array of 1000 CGFloat
s
...
at 13.0: 1000.001
at 14.0: 1152.934
at 15.0: 1000.909
at 16.0: 1200.666
...
And you'll be needing a value at any value
smoothed(13.40) == about 1085, say
So, we're talking about something like kernel smoothing - a window function. Such as
- a gaussian kernel smoother
- kernel average smoother
- local linear regression smoother
Excellent article: https://en.wikipedia.org/wiki/Kernel_smoother
Does iOS have something like this built-in to one of the GPU frameworks?
It's completely common for computers to do this sort of thing constantly, particularly in graphics subsystems.
How to do this in iOS on the GPU ... perhaps in Core audio or the Compute
stack? (Of course it's easy to do by hand in Swift.)