get_optimal_range: Find optimal range

View source: R/heat_tree--vertex_size.R

get_optimal_rangeR Documentation

Find optimal range

Description

Finds optimal max and min value using an optimality criterion.

Usage

get_optimal_range(
  max_range,
  min_range,
  resolution,
  opt_crit,
  choose_best,
  minimize = TRUE
)

Arguments

max_range

(numeric of length 2) The min and max boundaries to the search space for the optimal maximum value.

min_range

(numeric of length 2) The min and max boundaries to the search space for the optimal minimum value.

resolution

(numeric of length 2) The number of increments in each dimension.

opt_crit

(function) A function that takes two arguments, the max and min, and returns the optimality statistic.

choose_best

(function) A function that takes a list of opt_crit outputs and returns the index of the best one.


metacoder documentation built on April 4, 2023, 9:08 a.m.