Skip to content
/ -circ Public

Syntactical port of Phillip Berrens' circstat MATLAB toolkit, using +circ package syntax.

License

Notifications You must be signed in to change notification settings

m053m716/-circ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

+circ

(A port of the CircStattoolbox using MATLAB package syntax)

** Quick Links **


Note

Add this to a MATLAB project workspace using git with syntax:

git submodule add https://github.com/m053m716/-circ +circ

Description

Toolbox for circular statistics with Matlab.

Authors: Philipp Berens & Marc J. Velasco Email: berens@tuebingen.mpg.de Homepage: http://www.kyb.tuebingen.mpg.de/~berens/circStat.html

Contributors: Tal Krasovsky (Max Murphy) - This repo, for personal convenience.

Reference: P. Berens, CircStat: A Matlab Toolbox for Circular Statistics, Journal of Statistical Software, Volume 31, Issue 10, 2009 http://www.jstatsoft.org/v31/i10

Please cite this paper when the provided code is used. See licensing terms for details.

Contents

Function Description
circ.r Resultant vector length
circ.mean Mean direction of a sample of circular data
circ.axial Mean direction for axial data
circ.median Median direction of a sample of circular data
circ.std Dispersion around the mean direction (std, mardia)
circ.var Circular variance
circ.skewness Circular skewness
circ.kurtosis Circular kurtosis
circ.moment Circular p-th moment
circ.dist Distances around a circle
circ.dist2 Pairwise distances around a circle
circ.confmean Confidence intervals for mean direction
circ.stats Summary statistics
circ.rtest Rayleigh's test for nonuniformity
circ.otest Hodges-Ajne test (omnibus test) for nonuniformity
circ.raotest Rao's spacing test for nonuniformity
circ.vtest V-Test for nonuniformity with known mean direction
circ.medtest Test for median angle
circ.mtest One-sample test for specified mean direction
circ.wwtest Multi-sample test for equal means, one-factor ANOVA
circ.hktest Two-factor ANOVA
circ.ktest Test for equal concentration parameter
circ.symtest Test for symmetry around median angle
circ.kuipertest Test whether two distributions are identical (like KS test)
circ.corrcc Circular-circular correlation coefficient
circ.corrcl Circular-linear correlation coefficient
circ.kappa Compute concentration parameter of a vm distribution
circ.plot Visualization for circular data
circ.clust Simple clustering for circular data
circ.samplecdf Evaluate CDF of a sample of angles
circ.rad2ang Convert radian to angular values
circ.ang2rad Convert angular to radian values

About Syntax

All functions take arguments in radians (expect for ang2rad). For a detailed description of arguments and outputs consult the help text in the files.

Since 2010, most functions for descriptive statistics can be used in Matlab style matrix computations. As a last argument, add the dimension along which you want to average. This changes the behavior slightly from previous relaeses, in that input is not reshaped anymore into vector format. Per default, all computations are performed columnwise (along dimension 1). If you prefer to use the old functions, for now they are contained in the subdirectory 'old'.

References

  • E. Batschelet, Circular Statistics in Biology, Academic Press, 1981
  • N.I. Fisher, Statistical analysis of circular data, Cambridge University Press, 1996
  • S.R. Jammalamadaka et al., Topics in circular statistics, World Scientific, 2001
  • J.H. Zar, Biostatistical Analysis, Prentice Hall, 1999

The implementation follows in most cases 'Biostatistical Analysis' and all referenced equations and tables are taken from this book, if not otherwise noted. In some cases, the other books were preferred for implementation was more straightforward for solutions presented there.

If you have suggestions, bugs or feature requests or want to contribute code, please email us.

Disclaimer

All functions in this toolbox were implemented with care and tested on the examples presented in 'Biostatistical Analysis' were possible. Nevertheless, they may contain errors or bugs, which may affect the outcome of your analysis. We do not take responsibility for any harm coming from using this toolbox, neither if it is caused by errors in the software nor if it is caused by its improper application. Please email us any bugs you find.

By Philipp Berens and Marc J. Velasco, 2009 berens@tuebingen.mpg.de , velasco@ccs.fau.edu - www.kyb.mpg.de/~berens/circStat.html Distributed under Open Source BSD License

About

Syntactical port of Phillip Berrens' circstat MATLAB toolkit, using +circ package syntax.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages