Skip to content

llengths

Determine length of cluster-supporting lines using the folded normal distribution (μ=llength, σ=llength_disp).

lengths = llengths(num_clusters, llength, llength_disp)

Arguments

  • num_clusters: Number of clusters.
  • llength: Average line length.
  • llength_disp: Line length dispersion.

Return values

  • lengths: Lengths of cluster-supporting lines (num_clusters x 1 vector).

Note

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

Examples

cluseed(123);
llengths(4, 20, 3.5)'
% ans =
%
% 20.678   23.271   14.821   20.897