Skip to contents

Orthonormalize a basis functions with Gram-Schmidt algorithm.

Usage

gram_schmidt_orthonormalize(basis, output_type = "fdlist", tol = 1e-12)

Arguments

basis

A basis object from fda package or a list of fd functions.

output_type

A character to choose the output format. "fdlist" (default) or "funlist" for R functions.

tol

a float, tolerance parameter, default 1e-12

Value

A list of orthonormalized functions fd or func(t)

Author

Francois Bassac

Examples


start = 0
end = 10
basis = create_bspline_basis(start, end, nbasis = 10, norder = 4)

basis_orth = gram_schmidt_orthonormalize(basis, "fdlist")