Synthesized functional signals with heterogeneous error. The underlying three coefficients correspond to 'dense', 'global sparse', and 'local sparse' functions. See https://arxiv.org/abs/2006.10163 for detailed configurations.

spfda_simulate(n = 1000, n_timepoints = 100, err = 1)

## Arguments

n Total number of observations Total number of time points Error magnitude

## Value

A list of data generated: X is scalar predictor, Y is functional response.