View License

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

» Watch video

Highlights from
Kernel smoothing density estimate for circular data

5.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 29.2 KB File ID: #32614 Version: 1.4
image thumbnail

Kernel smoothing density estimate for circular data


Vlad Atanasiu (view profile)


20 Aug 2011 (Updated )

Provides various methods to smooth circular data.

| Watch this File

File Information

This is a companion to Matlab's Statistics toolbox ksdensity function and Philipp Berens' CircStat toolbox.
The difference with Matlab's ksdensity function is that this function is adaped to circular data, such as wind orientation. Using Matlab's function will give biased values at the extremities of the pdf for circular data.

The kernel used in this function is a normal distribution with an automatically computed optimal standard deviation as presented in:
- Silverman B. W. (1998), Density Estimation for Statistics and Data Analysis, Chapman & Hall / CRC, Boca Raton (FL), 47-8.
- Bowman Adrian W. & Adelchi Azzalini (1997) - Applied Smoothing Techniques for Data Analysis, Oxford University Press, 31.
- Wand M. P. & M. C. Jones (1995) - Kernel Smoothing, Chapman & Hall, London, 60-3.


Circular Statistics Toolbox (Directional Statistics) inspired this file.

Required Products Statistics and Machine Learning Toolbox
MATLAB release MATLAB 7.10 (R2010a)
MATLAB Search Path
Other requirements Optional: CircStat toolbox for circular data by Philipp Berens. See description in file for details.
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
20 Jan 2017 Gen

Gen (view profile)

04 Dec 2015 Vlad Atanasiu

Vlad Atanasiu (view profile)

Thanks Dylan for your comment! The input to the function is indeed in angles, but the data is converted to radians before calling the circular statistic functions. As for your second comment, could you please provide an example of use case and data for which you would like to have the requested functionality? Best, Vlad

Comment only
23 Oct 2013 Dylan Muir

Dylan Muir (view profile)

A couple of issues with this function: firstly, the circular stats toolbox functions called by this function assume radians as input, while this function uses degrees in its examples.

Secondly, this function requires that the vector of angles over which to calculate the kernel density estimate is identical to the domain of periodicity. If this condition is not satisfied, the function fails badly. This requirement should at the very least be mentioned in the help, and ideally removed entirely.

Comment only
22 Aug 2011 1.1

Modified screenshot.

09 Mar 2012 1.3

Added circ_irq supplemental file.

19 Nov 2014 1.4

Published as Matlab toolbox (.mltbx file).

Contact us