simulate_lotka_volterra_ctmc: Simulate continuous-time Markov chain of Lotka-Volterra model

Description Usage Arguments Value

View source: R/lotka-volterra-ctmc.R

Description

Simulate continuous-time Markov chain of Lotka-Volterra model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
simulate_lotka_volterra_ctmc(
  theta,
  y1_min = 0,
  y2_min = 0,
  y1_max,
  y2_max,
  initial_y1,
  initial_y2,
  initial_state_prob,
  total_time
)

Arguments

theta

Numeric vector of length 3.

y1_min

Min for y1, integer, default is 0.

y2_min

Min for y2, integer, default is 0.

y1_max

Max for y1, integer.

y2_max

Max for y2, integer.

initial_y1

Initial state of process y1.

initial_y2

Initial state of process y2.

initial_state_prob

Probability matrix (y1, y2) for intial state of process.

total_time

Total time that CTMC can run for.

Value

Trajectory (integer vector)


bonStats/smcdar documentation built on Dec. 19, 2021, 10:47 a.m.