Description Usage Arguments Value
Defines a cost function to be used in seq_opt()
.
A cost function defines the penalty for a given state transitions.
If multiple cost functions are provided to seq_opt()
then costs are computed for each cost function and summed
to produce the final cost.
1 2 | cost_fun(f, context_sensitive, vectorised = FALSE, symmetric = NA,
has_reverse = FALSE)
|
f |
Function defining the cost function.
If |
context_sensitive |
(Logical scalar)
Whether the function is affected by the identity of the previous state.
If |
vectorised |
(Logical scalar)
Whether or not |
symmetric |
(Logical scalar)
Whether |
has_reverse |
(Logical scalar)
If |
An object of class cost_fun
, to be combined into a list
and passed to seq_opt()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.