Function to produce generic functional data
rbetafda(n, nx = 500, ta = 1, tb = 1, sigma = 0, K = 1000, seed)
n | number of samples |
---|---|
nx | number of coloumns |
ta | is shape parameter |
tb | is shape parameter |
sigma | need a description here |
K | need a description here |
seed | is a seeding option for reproducibility issues |
The function produces a fda random sample of size n over the equidistant grid of size nx, 1/(nx+1):1/(nx+1):nx/(nx+1) with equal to square roots of beta densities with parameters alpha and beta simulated independently from gamma distributions with the shape parameters ta and tb, respectively, and normalized to yield the mean 0.5.
f1=rbetafda(10)