Description Usage Arguments Value
Given a list of timepoints and corresponding lists of possible states, efficiently finds an optimal state sequence that minimises (or maximises) an arbitrary transition cost function. The implementation uses dynamic programming to achieve complexity linear in the sequence length and quadratic in the number of possible states.
1 2 |
x |
A nested list describing the possible states at the possible time points.
Element |
cost_funs |
A list of cost functions,
with each cost function created by |
weights |
Numeric vector of either length 1 or the same length as |
verbose |
(Logical scalar) Whether to display progress messages. |
exp_cost |
(Logical scalar) Whether the combined cost function should be exponentiated. |
norm_cost |
(Logical scalar)
Whether or not the cost at each transition
(conditioned on the previous state)
should be normalised to sum to 1
for the set of possible continuations.
This yields a probabilistic interpretation of the cost function.
This takes place after the exponentiation controlled by the
|
log_cost |
(Logical scalar)
Whether or not the final costs should have their logarithm taken.
This takes place after the normalisation controlled by
the |
minimise |
(Logical scalar) Whether the cost function should be minimised or maximised. |
A list where element i
corresponds to the optimal
state at timepoint i
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.