powered by
use legendre polynomials to fit a given data
get_legendre_par(y, legendre_order, x)
the polynomials coefficients
vector equal to the y observed data(in this case generic effect)
scalar of legendre polynomials
vector equal to the x value for legendre polynomials(in this case times)
get_legendre_par(14:1,4,1:14)
Run the code above in your browser using DataLab