diff --git a/circ_vmrnd.m b/circ_vmrnd.m index a948657..00285bc 100644 --- a/circ_vmrnd.m +++ b/circ_vmrnd.m @@ -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