Skip to contents

General function to test basis functions

Usage

test_basis_properties(basis, name = "Base", tol = 1e-10)

Arguments

basis

Basis to test, basis object or list of fd functions

name

Character, name of the basis

tol

Float, precision, default 1e-10

Value

a boolean

Author

Francois Bassac

Examples

start = 0
end = 10
basis = create_bspline_basis(start, end, nbasis=10, norder=4)
test_basis_properties(basis, "cubic splines", tol = 1e-3)
#> === Tests for cubic splines ===
#> Orthogonal: FALSE 
#> Orthonormal: FALSE 
#> 

basis_f = fda::create.fourier.basis(rangeval=c(start, end), nbasis=5)
test_basis_properties(basis_f, "Fourier", tol = 1e-3)
#> === Tests for Fourier ===
#> Orthogonal: TRUE 
#> Orthonormal: TRUE 
#>