View source: R/datamanagement.R
pre_comput_WNN | R Documentation |
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 = 51
)
normalizedData |
Normalized data frame ( |
predictorNames |
Character vector of covariate names. |
responseName |
Name of the response variable. |
nIntegral |
Number of quadrature points for response domain. |
nDiscret |
Number of discretization steps for covariates. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.