How do I get the function which transforms an input to be the argument of a Legendre polynomial when using numpy.polynomial.legendre?
问题 # import packages we need later import matplotlib.pyplot as plt import numpy as np What I am doing Inspired by this question & answer, I am fitting a series of Legendre polynomials to a time series: curve1 = \ np.asarray([942.153,353.081,53.088,125.110,140.851,188.170,70.536,-122.473,-369.061,-407.945,88.734,484.334,267.762,65.831,74.010,-55.781,-260.024,-466.830,-524.511,-76.833,-36.779,-117.366,218.578,175.662,185.653,299.285,215.276,546.048,1210.132,3087.326,7052.849,13867.824,27156.939