Description Usage Arguments Value

View source: R/geneticAlgorithm.R

`regime_distance`

scales each regime parameter to the same magnitude
and then calculates distance between scaled `regime_pars1`

and `regime_pars2`

.

1 | ```
regime_distance(regime_pars1, regime_pars2)
``` |

`regime_pars1` |
a numeric vector representing a regime. |

`regime_pars2` |
a numeric vector representing another regime, same length as |

Returns "distance" between `regime_pars1`

and `regime_pars2`

. Values are scaled
to the same magnitude before calculating the "distance". Read the source code for details.

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.