Line lengths are determined using the folded normal distribution
(\(\mu=\) llength
, \(\sigma=\) llength_disp
).
Arguments
- num_clusters
Number of clusters.
- llength
Average line length.
- llength_disp
Line length dispersion.
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