Description Usage Arguments Details Value Examples

Set the discretization level of a data matrix for input to `MagiSolver`

, by inserting time points where the GP is constrained to the derivatives of the ODE system.

1 | ```
setDiscretization(dat, level, by)
``` |

`dat` |
data matrix. Must include a column with name 'time'. |

`level` |
discretization level (a positive integer). |

`by` |
discretization interval. As an alternative to |

Specify the desired discretization using `level`

or `by`

.

Returns a data matrix with the same columns as `dat`

, with rows added for the inserted discretization time points.

1 2 3 | ```
dat <- data.frame(time = 0:10, x = rnorm(11))
setDiscretization(dat, level = 2)
setDiscretization(dat, by = 0.2)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.