@@ -56,7 +56,7 @@ function hawkes_jump(u, g, h)
5656 return [hawkes_jump(i, g, h) for i in 1:length(u)]
5757end
5858
59- function hawkes_problem(p, agg::QueueMethod ; u=[0.], tspan=(0., 50.), save_positions=(false, true),
59+ function hawkes_problem(p, agg::Coevolve ; u=[0.], tspan=(0., 50.), save_positions=(false, true),
6060 g = [[1]], h = [[]])
6161 dprob = DiscreteProblem(u, tspan, p)
6262 jumps = hawkes_jump(u, g, h)
8080```
8181
8282```julia
83- methods = (Direct(), QueueMethod ())
83+ methods = (Direct(), Coevolve ())
8484shortlabels = [string(leg)[15:end-2] for leg in methods]
8585
8686V = 10
@@ -96,7 +96,7 @@ plots = []
9696for (i, method) in enumerate(methods)
9797 jump_prob = hawkes_problem(p, method; u=u, tspan=tspan, g=g, h=h)
9898 reset_history!(h)
99- if typeof(method) <: QueueMethod
99+ if typeof(method) <: Coevolve
100100 sol = solve(jump_prob, SSAStepper())
101101 else
102102 sol = solve(jump_prob, Tsit5())
@@ -131,7 +131,7 @@ for method in methods
131131 global _u = [0. for i in 1:nv(_G)]
132132 global _h = [eltype(tspan)[] for _ in 1:nv(_G)]
133133 global _jump_prob = hawkes_problem(p, method; u=_u, tspan=tspan, g=_g, h=_h)
134- if typeof(method) <: QueueMethod
134+ if typeof(method) <: Coevolve
135135 global _stepper = SSAStepper()
136136 else
137137 global _stepper = Tsit5()
0 commit comments