generate_background_curve | R Documentation |
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.
generate_background_curve(len, dist_knots, norder, weights, add_noise)
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. |
Generate Background Curve
A list containing the generated basis, coefficients, and curve values with or without noise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.