Learn R Programming

MECfda (version 0.2.1)

numericBasisSeries2fun: Compute the value of the basis function summation series at certain points.

Description

Compute the function \(f(x) = \sum_{k=0}^{p}c_k \rho_{k}(x)\), \(x\in\Omega\)

Usage

numericBasisSeries2fun(object, x)

# S4 method for numericBasis_series,numeric numericBasisSeries2fun(object, x)

Value

A numeric atomic vector

Arguments

object

an object of numericBasis_series class.

x

Value of $x$.

Author

Heyang Ji

Examples

Run this code
t_0 = 0
period = 1
t_points = seq(0.05,0.95,length.out = 19)
nb = numeric_basis(
  basis_function = cbind(1/2,cos(2*pi*t_points),sin(2*pi*t_points)),
  t_points       = t_points,
  t_0            = t_0,
  period         = period
)
ns = numericBasis_series(coef = c(0.8,1.2,1.6),numeric_basis = nb)
numericBasisSeries2fun(ns,seq(0,1,length.out = 51))

Run the code above in your browser using DataLab