View source: R/random_search.R
| random_search | R Documentation |
Jitter the best GA layouts inside their grid cells and
re-evaluate energy. Use this as a short post-search after
genetic_algorithm(). Terrain and Weibull follow the GA flags
when terrain / weibull are NULL. Terrain rasters from the GA
are reused when stored in result; pass a DEM to rebuild. Weibull
rasters are not stored; pass weibull_src again if needed.
random_search(
result,
area,
runs = 20,
best = 1,
plot = FALSE,
max_dist = 2.2,
terrain = NULL,
weibull = NULL,
weibull_src = NULL,
ccl = NULL,
ccl_roughness = NULL
)
result |
The resulting matrix of the function |
area |
Site polygon ( |
runs |
How many jittered layouts to try per |
best |
How many distinct best layouts to refine. Default is 1. |
plot |
Draw the random-search layouts |
max_dist |
A numeric value multiplied by the rotor radius to perform
collision checks. Default is |
terrain |
|
weibull |
|
weibull_src |
|
ccl |
Path to a Corine Land Cover raster when |
ccl_roughness |
Path to the CLC legend CSV ( |
Returns a list.
Other Randomization:
plot_random_search(),
random_search_single()
new <- random_search(resultrect, sp_polygon, runs = 20, best = 4)
plot_random_search(resultRS = new, result = resultrect, area = sp_polygon, best = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.