Computes intermediate quantities for evaluating basis functions via weighted nearest-neighbor (WNN) interpolation on a discretized grid.
pre_comput_WNN(
normalizedData,
predictorNames,
responseName,
nIntegral = 101,
nDiscret = 101,
mode = "pdf"
)A list of intermediate quantities:
nodes: all evaluation points in response × covariates grid,
indNodesToIntegral: indices to map nodes to response bins,
indSamplesToNodes: index mapping from samples to grid nodes,
weightSamplesToNodes: interpolation weights using inverse distance.
Normalized data frame (\([0,1]\)-scaled).
Character vector of covariate names.
Name of the response variable.
Number of quadrature points for response domain.
Number of discretization steps for covariates.