This function optimizes spatial and temporal bandwidths simultaneously using
a 2D Golden Section Search approach. It is typically used internally by
search_bandwidths when refine = TRUE for
spatio-temporal models (Type 'GDT').
golden_search_2d_bandwidth(formula, data, coords, fixed_vars, kernels, Model,
control, lower.bound.space, upper.bound.space,
lower.bound.time, upper.bound.time,
tolerance_s = 1e-06, tolerance_t = 1e-06,
max_iter = 10)A list containing:
Vector of optimized bandwidths c(h_spatial, h_temporal).
Final AICc value.
The fitted mgwrsar model object.
A formula object.
A data frame containing the variables.
A matrix of coordinates (spatial indices).
Vector of names of variables with fixed coefficients.
Vector of kernel types (e.g., c('gauss', 'gauss')).
Character string specifying the model type (e.g., 'GWR').
List of control parameters.
Numeric. Lower bound for the spatial bandwidth search.
Numeric. Upper bound for the spatial bandwidth search.
Numeric. Lower bound for the temporal bandwidth search.
Numeric. Upper bound for the temporal bandwidth search.
Numeric. Convergence tolerance for the spatial dimension. Default is 1e-6.
Numeric. Convergence tolerance for the temporal dimension. Default is 1e-6.
Integer. Maximum number of iterations for the optimization loop. Default is 10.
golden_search_bandwidth, search_bandwidths