Skip to contents

Simulates a broken-stick partition of the unit interval using runif().

Usage

generate_brokenstick_probabilities(n_species)

Arguments

n_species

Integer (>= 1). Number of species.

Value

Numeric vector of probabilities of length n_species summing to 1.