lsc_metaepochs_without_active_child: Factory function for a local stopping condition that stops a...

View source: R/local_stopping_condition.R

lsc_metaepochs_without_active_childR Documentation

Factory function for a local stopping condition that stops a deme after given number of metaepochs have past since last metaepoch during which this deme had an active child.

Description

Factory function for a local stopping condition that stops a deme after given number of metaepochs have past since last metaepoch during which this deme had an active child.

Usage

lsc_metaepochs_without_active_child(metaepochs_limit)

Arguments

metaepochs_limit
  • number of metaepochs that a deme can be active without any active child

Value

Function that can be used as a local stopping condition for hms.

Examples

local_stopping_condition <- lsc_metaepochs_without_active_child(3)

hmsr documentation built on Oct. 25, 2023, 9:07 a.m.