legendre_fit function

generate curve based on legendre polynomials

generate curve based on legendre polynomials

legendre_fit(par, x)

Arguments

  • par: vector of legendre polynomials coefficients
  • x: vector equal to the x value for legendre polynomials(in this case times)

Returns

the polynomials value

Examples

legendre_fit(rep(1,5),1:14)