generate_background_curve: Generate Background Curve

View source: R/S4_utilities.R

generate_background_curveR Documentation

Generate Background Curve

Description

This function generates a background curve using B-splines with specified parameters, including knots, order, and weights. Optionally, additive noise can be added to the curve.

Usage

generate_background_curve(len, dist_knots, norder, weights, add_noise)

Arguments

len

An integer indicating the length of the curve to generate.

dist_knots

A numeric value indicating the distance between knots.

norder

An integer specifying the order of the B-spline.

weights

A numeric vector containing the coefficients for the B-spline.

add_noise

A logical value indicating whether to add Gaussian noise to the curve.

Details

Generate Background Curve

Value

A list containing the generated basis, coefficients, and curve values with or without noise.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.