adjustRangesFromCentralPoint: Adjust parameter ranges

View source: R/SOptim_RandSearchAlgorithm.R

adjustRangesFromCentralPointR Documentation

Adjust parameter ranges

Description

An auxiliary function used in randomSearchOptim to adjust ranges around a point. This adjustement is required to draw a random set of points in the vicinity of the best central point in a given iteration.

Usage

adjustRangesFromCentralPoint(paramList, centralPoint, neighSizeProp = 0.025)

Arguments

paramList

An input list containing the parameter ranges

centralPoint

A vector containing coordinates (parameter values) for the best point. It must have the same size as length(paramList).

neighSizeProp

Size of the neighbourhood for a given parameter, i.e., a real value contained in ]0, 1] used to multiply the range size as: neighSize = (max_{range} - min_{range}) \times neighSizeProp.

Value

A list object containing the updated ranges.

Examples


params <- list("thresh"  = c(0.1,0.5), "minsize" = c(10,20))

adjustRangesFromCentralPoint(paramList = params, 
centralPoint = c(0.15, 12), neighSizeProp = 0.025)


joaofgoncalves/SegOptim documentation built on Feb. 5, 2024, 11:10 p.m.