Description Usage Arguments Details Value

`compare_fsm`

uses a specified distance measure to compare FSMs.

1 | ```
compare_fsm(users, gas, comparison = "manhattan")
``` |

`users` |
Numeric vector or numeric matrix with a predefined FSM |

`gas` |
Numeric vector or numeric matrix with an evolved FSM |

`comparison` |
Character string of length one with either "manhattan", "euclidean", or "binary". |

Compares a user-defined FSM to a decoded estimated FSM. If you have have FSMs that may have values in the matrices that are not all simple integers, you can use the distance metric that is most appropriate. Euclidean does sqrt(sum((x_i - y_i)^2)) - the L2 norm. Manhattan takes abs diff between them - the L1 norm. Binary treats non-zero elements as "on" and zero elements as "off" and distance is the proportion of bits in which only one is on amongst those in which at least one is on.

Numeric vector of length one for the distance between the two supplied FSMs, calculated according to the comparison argument.

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.