Computes intermediate quantities for evaluating SLGP basis functions using Nearest Neighbor (NN) interpolation over a regular grid in the normalized domain.
pre_comput_NN(
normalizedData,
predictorNames,
responseName,
nIntegral = 101,
nDiscret = 101
)A list of intermediate quantities used in SLGP evaluation:
nodes: grid of response × covariates,
indNodesToIntegral: response bin indices,
indSamplesToNodes: sample-to-node index mapping,
weightSamplesToNodes: equal weights for NN interpolation.
A normalized data frame (values in \([0,1]\)).
Character vector of covariate names.
Name of the response variable.
Number of grid points for discretizing the response domain.
Number of grid points for discretizing the covariate domain.