splineFunction1D: Calculate linear combinations of spline basis functions on...

View source: R/univariateExpansions.R

splineFunction1DR Documentation

Calculate linear combinations of spline basis functions on one-dimensional domains

Description

Given scores (coefficients), this function calculates a linear combination of spline basis functions on one-dimensional domains based on the gam function in the mgcv package.

Usage

splineFunction1D(scores, argvals, bs, m, k)

Arguments

scores

A matrix of dimension N x K, representing the K scores (coefficients) for each of the N observations.

argvals

A list containing a vector of x-values, on which the functions should be defined.

bs

A character string, specifying the type of basis functions to be used. Please refer to smooth.terms for a list of possible basis functions.

m

A numeric, the order of the spline basis. See s for details.

k

A numeric, the number of basis functions used. See s for details.

Value

An object of class funData with N observations on argvals, corresponding to the linear combination of spline basis functions.

See Also

univExpansion, gam, splineBasis1D


MFPCA documentation built on Sept. 15, 2022, 9:07 a.m.