regime_distance: Calculate "distance" between two regimes

View source: R/geneticAlgorithm.R

regime_distanceR Documentation

Calculate "distance" between two regimes

Description

regime_distance scales each regime parameter to the same magnitude and then calculates distance between scaled regime_pars1 and regime_pars2.

Usage

regime_distance(regime_pars1, regime_pars2)

Arguments

regime_pars1

a numeric vector representing a regime.

regime_pars2

a numeric vector representing another regime, same length as regime_pars1

Value

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.


uGMAR documentation built on Aug. 19, 2023, 5:10 p.m.