get_grid: Create Grid Around Maximum Likelihood Estimate (Internal)

View source: R/adaptive_sampling.R

get_gridR Documentation

Create Grid Around Maximum Likelihood Estimate (Internal)

Description

Internal helper to generate a sequence of values for a parameter. The grid is centered on the parameter's Maximum Likelihood Estimate (MLE), which is found by calculating the mode of its weighted marginal distribution.

Usage

get_grid(samples, param, num_points, start_factor, end_factor)

Arguments

samples

Data frame of parameter samples with an NLL column.

param

Character name of the parameter column.

num_points

Integer number of points for the grid.

start_factor

Numeric factor for grid's lower boundary relative to MLE.

end_factor

Numeric factor for grid's upper boundary relative to MLE.

Value

A numeric vector of grid points.


topolow documentation built on Aug. 31, 2025, 1:07 a.m.