generate_background_curve {funMoDisco}R 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.


[Package funMoDisco version 1.0.0 Index]