How to smooth in Octave?

John Lawrence Aspden picture John Lawrence Aspden · Aug 21, 2014 · Viewed 14.4k times · Source

I'm trying to get a piece of MATLAB code to run in Octave, and I've come upon the line:

xsm = smooth(x,0.03,'loess') 

which doesn't seem to have an octave equivalent. x is just an array of a few thousand real numbers.

Is there any Octave code out there which will do this for me, and if not, where do I find the algorithm so that I can write my own? And if I do that, how do I contribute it to Octave?

Answer

Dan picture Dan · Aug 22, 2014

Looks like someone has already implemented it: smooth.m or else maybe data smoothing package on Octave-Forge