Skip to contents

It allows an individual to sprout only if there are no other demes on the target level that have centroid within the given distance.

Usage

sc_max_metric(metric, max_distances)

Arguments

metric
  • Metric used for deme distance comparison (e.g. euclidean_distance, manhattan_distance)

max_distances
  • numeric - maximum distance to a centroid of a deme on the target level that would allow the individual to sprout

Value

Function that can be used as a sprouting condition of hms.

Examples

sprouting_condition <- sc_max_metric(euclidean_distance, c(20, 10))