generate curve based on legendre polynomials
legendre_fit(par, x)
par
: vector of legendre polynomials coefficientsx
: vector equal to the x value for legendre polynomials(in this case times)the polynomials value
legendre_fit(rep(1,5),1:14)
Useful links