Skip to content

Commit

Permalink
Added -pi shift for [-pi,pi] range
Browse files Browse the repository at this point in the history
  • Loading branch information
adehad committed May 21, 2019
1 parent eac89ff commit bc151b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion circ_vmrnd.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

% if kappa is small, treat as uniform distribution
if kappa < 1e-6
alpha = 2*pi*rand(n,1);
alpha = 2*pi*rand(n,1)-pi;
return
end

Expand Down

0 comments on commit bc151b4

Please sign in to comment.