Description Usage Arguments Details Value
View source: R/generate_cotime_with_buffer.R
This function randomly draw events' time from a time range. User can specify the minimal time length (buffer) between events
1 | generate_cotime_with_buffer(time.range, nco.events, buffer = 0)
|
time.range |
A numeric vector of length 2 giving the minimal and maximum time. |
nco.events |
An integer. The number of co-expansion events. See 'Details'. |
buffer |
A numeric. The minimal amount of time separating two events. The default is 0, when events' time are sampled randomly |
Note that the buffer
is the time length on each side of a expansion event. If the buffer
is non-zero,the maximum number of events (max nco.event
)=time.range
/buffer
+2. However, for a large nco.events
, even if it does not exceed the maximum, this function might take a while to find a set of time that are at least buffer
apart from each other.
A numeric vector of length nco.events
containing the sampled expansion time
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.