Learn R Programming

Racmacs (version 1.2.9)

randomizeCoords: Randomize map coordinates

Description

Moves map coordinates back into random starting conditions, as performed before each optimization run. The maximum table distance is calculated then points are randomized in a box with side length equal to maximum table distance multiplied by table_dist_factor

Usage

randomizeCoords(map, optimization_number = 1, table_dist_factor = 2)

Value

Returns an updated map object

Arguments

map

The acmap data object

optimization_number

The map optimization number to randomize

table_dist_factor

The expansion factor for the box size in which points are randomized.

See Also

Other map optimization functions: RacOptimizer.options(), make.acmap(), moveTrappedPoints(), optimizeMap(), relaxMapOneStep(), relaxMap()