pre_comput_nothing: pre_comput_nothing: Precompute quantities for SLGP basis...

View source: R/datamanagement.R

pre_comput_nothingR Documentation

pre_comput_nothing: Precompute quantities for SLGP basis evaluation without interpolation

Description

Computes intermediate quantities for evaluating basis functions when no interpolation is used. Basis functions are evaluated at the exact covariate and response grid locations.

Usage

pre_comput_nothing(
  normalizedData,
  predictorNames,
  responseName,
  nIntegral = 51
)

Arguments

normalizedData

A data frame with values already normalized to [0,1].

predictorNames

Character vector of covariate column names.

responseName

Name of the response variable.

nIntegral

Integer, number of points used to discretize the response domain.

Value

A list of intermediate quantities used in SLGP basis function computation:

  • nodes: all points where basis functions are evaluated,

  • indNodesToIntegral: index mapping nodes to response bins,

  • indSamplesToNodes: index mapping observations to nodes,

  • indSamplesToPredictor: index mapping observations to unique predictors,

  • weightSamplesToNodes: interpolation weights (equal to 1 here).


SLGP documentation built on Sept. 9, 2025, 5:25 p.m.