Skip to content

Heaviside-type forcing functions #155

Answered by kingaa
dcnorris asked this question in Q&A
Discussion options

You must be logged in to vote

This is a really good question.

Before I address it, I recommend that, since your model is a continuous-time model, you use the euler plug-in rather than the discrete_time one. The main difference between these is that discrete_time assumes that the trajectories of your state process change exactly and only at multiples of the timestep delta.t, while euler makes no such assumption.

On to the main question. There are several ways of implementing the impulsive forcing you describe. I think the conceptually cleanest one is as follows.

First, include a covariate consisting of the sum of your Heaviside forcing functions. In other words, the covariate, call it f, is the cumulative sum of the de…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@dcnorris
Comment options

Comment options

You must be logged in to vote
1 reply
@dcnorris
Comment options

Answer selected by dcnorris
Comment options

You must be logged in to vote
4 replies
@kingaa
Comment options

@dcnorris
Comment options

@kingaa
Comment options

@dcnorris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants