Rank: 549 based on 237 downloads (last 30 days) and 2 files submitted
photo

Philipp Berens

E-mail
Company/University
MPI for Biological Cybernetics

Personal Profile:

http://www.kyb.mpg.de/~berens

Professional Interests:
Statistics, Computational Neuroscience

 

Watch this Author's files

 

Files Posted by Philipp View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Jun 2012 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens statistics, probability, circular statistic, rayleigh, angular, circular 208 82
  • 4.42424
4.4 | 37 ratings
09 Jul 2008 Sampling from multivariate correlated binary and poisson random variables These Matlab functions can be used to generate multivariate correlated binary variables, and correl Author: Philipp Berens 29 4
  • 4.0
4.0 | 2 ratings
Comments and Ratings by Philipp View all
Updated File Comments Rating
18 Sep 2012 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Ryan, the average is in the dot product w'*exp(...) which in the simplest case is a vector of ones - so this is the sum operation. exp(i*angle) decomposes the angle into its sine and cosine components. Finally, angle is atan2. Compare the results of your and my code - they should be identical with my code likely running a bit fast due to matrix style computations.

Bst
Philipp

18 Jul 2012 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Hi Francesco, if you have orientations, multiply all orientations by 2 to obtain directions. If you want to obtain the mean resultant vector, devide its orientation by 2 again.

24 Apr 2012 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Thanks for the recent feedback and bugreports. I was away for a while and will start taking care of them soon.

28 Sep 2011 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Thanks for the comments.

@Christopher: The ~ has been introduced as a placeholder in the latest MATLAB versions for output arguments that are not needed. I will go back to some dummy variable with the next upload.

@Heida: I don't see an easy way of doing what you suggest with the functions implemented.

@Omzaz: The multi-sample tests assume independent samples. I don't know about repeated-measures ANOVA etc. for circular data. If you find anything let me know.

The option to ignore NaNs... I think this is a tricky thing, because you always make a specific choice how NaNs are treated and each user might have different preferences. I will think about it though.

15 Dec 2010 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens

Hi Christopher, thanks for your feedback. I will update circ_plot with the next upload.

Comments and Ratings on Philipp's Files View all
Updated File Comment by Comments Rating
01 Jun 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Malik, Wasim

On a quick look, the Moore-Rayleigh test for uniformity of vector data (B.R. Moore, Biometrika, 1980) does not seem to be available in this toolbox. Philipp, do you have any plans to implement it? Alternatively, does anyone know if a Matlab implementation of that test is available elsewhere? Thanks.

01 Jun 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Malik, Wasim

14 May 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Diego

Hi everybody!

I have a question about circ_plot.m; When I execute this code the angles appear from 0 to 360 degrees.

I only want represent values from 0 to 180. How I can do it? Thanks in advance!

09 Feb 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Edmonds, Richard

Actually, ignore the inverse_cdf function I have provided. It should generate a vlaue for kappa and it needs adjusting for values of thetahat other than zero.

07 Feb 2014 Circular Statistics Toolbox (Directional Statistics) Compute descriptive and inferential statistics for circular or directional data. Author: Philipp Berens Edmonds, Richard

Great submission. It would be nice to have cdf and inversion cdf for the vmpdf functions. Here's what I wrote for my needs
function p = circ_vmcdf(alpha, thetahat, kappa)
%integrates the pdf from an angle of -pi to an angle alpha
F = @(x)circ_vmpdf(x, thetahat, kappa);
p = quad(F,-pi(),alpha);
end

function theta = circ_vminv(p, thetahat, kappa)
%computes the inverse of the abovecirc_vmcdf.
fun =@(alpha)(circ_vmcdf(alpha, thetahat, kappa)-p);
theta = fzero(fun,[-pi pi]);
end

Contact us