Skip to content

Conversation

@mj023
Copy link
Collaborator

@mj023 mj023 commented Jan 6, 2026

This PR is duplicate of #170. Merging the previous PR with the main branch became unfeasible because there were too many merge conflicts.

This PR will add a way to specify multiple common shock types directly through the interface of LCM.

To accomplish this, a new ShockGrid grid class will be added. To make the values of this grid depend on parameters, the values will be calculated dynamically once the user provides them. During the solution the shocks will be discretized like a normal ContinousGrid, but during the simulation, the next values will be drawn from the shocks undiscretized probability distribution. Here the shocks transition probabilities will be linearly interpolated, as the discretized transition probabilities are only calculated at the gridpoints, but subjects can land between gridpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants