File Exchange

image thumbnail

Nadaraya-Watson smoothing

version 1.9 (2.62 KB) by

A non-parametrical regression (smoothing) tool using Gaussian kernel.

13 Downloads

Updated

View License

The advantage of this smoothing function is that it doesn't need any parameters - it finds the optimal parameters by itself. And still the calculation takes just a second for 100 samples.
 
This code implements Nadaraya-Watson kernel regression algorithm with Gaussian kernel. The optimal setting of the regression is derived by closed form leave-one-out cross-validation.

Comments and Ratings (3)

Greg

Greg (view profile)

Simple to use and fast, thank you.

Jan Motl

Jan Motl (view profile)

Hi Mo,
I just uploaded a partially vectorised version, which should be a bit faster. Now the smoothing takes around 10 seconds to process 2500 samples on my computer. Let me know if you need it to be even faster.

Mo

Mo (view profile)

Hi Jan,
Unfortunately, the calculation for more samples (for example 2500 samples) takes a very long time.
Isn't possible to make it faster?

Updates

1.9

Improved help text.

1.7

Vectorised.

1.6

The function description was truncated and some tags added.

1.5

Screen-shot was added (2).

1.4

Removed __MACOSX file from the archive.

1.3

Screen-shot was added.

MATLAB Release
MATLAB 6.5 (R13)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video