Skip to content

angle_deltas

Determine the angles between the average cluster direction and the cluster-supporting lines using the wrapped normal distribution (μ=0, σ=angle_disp) with support in the interval [-π/2, π/2].

angd = angle_deltas(num_clusters, angle_disp)

Arguments

  • num_clusters - Number of clusters.
  • angle_disp - Angle dispersion, in radians.

Return values

  • angles - Angles between the average cluster direction and the cluster-supporting lines, given in radians in the interval [-π/2, π/2].

Note

This function is stochastic. For reproducibility set the PRNG seed with cluseed() as discussed in the Reference.

Examples

cluseed(123);                   % Seed set to 123
arad = angle_deltas(4, pi / 8); % Angle dispersion of 22.5 degrees
rad2deg(arad')                  % Show angle deltas in degrees
% ans =
%
%     4.3613   21.0290  -33.2926    5.7669