model_simulate
model_simulate(model, n, seed=12345)Draw a seeded random sample from a model at its current parameter values.
The draws come from the same Mersenne Twister stream as the upstream C# library, so a given seed reproduces the C# values bit-for-bit and matches corehydror exactly.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| model | Model | The model to draw from. | required |
| n | int | Number of values to draw. | required |
| seed | int | PRNG seed. | 12345 |
Returns
| Name | Type | Description |
|---|---|---|
| numpy.ndarray | Length n, or an n by 2 array for a bivariate model. |