https://github.com/tidyfun/tf/blob/429afd9c1709b5e564834652bae52096c047ba63/R/tfb-fpc-utils.R#L40 should prob. also weight by variance of "unexplained rest" from truncated eigenfunctions to avoid overfitting in high-variance regions of domain...
tf/R/tfb-fpc-utils.R
Line 40 in 429afd9
should prob. also weight by variance of "unexplained rest" from truncated eigenfunctions to avoid overfitting in high-variance regions of domain...