Skip to contents

Line lengths are determined using the folded normal distribution (\(\mu=\) llength, \(\sigma=\) llength_disp ).

Usage

llengths(num_clusters, llength, llength_disp)

Arguments

num_clusters

Number of clusters.

llength

Average line length.

llength_disp

Line length dispersion.

Value

Lengths of cluster-supporting lines (vector of size num_clusters).

Note

This function is stochastic. For reproducibility set a PRNG seed with set.seed.

Examples

set.seed(123)
llengths(4, 20, 3.5)
#> [1] 18.03834 19.19438 25.45548 20.24678