擅长:python、mysql、java
<p>您可以使用任何SciPy <a href="https://docs.scipy.org/doc/scipy/reference/interpolate.html" rel="nofollow noreferrer">interpolation methods</a>,例如<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.interp1d.html#scipy.interpolate.interp1d" rel="nofollow noreferrer">interp1d</a>,根据离散数据创建一个可调用函数,并将其传递给<code>odeint</code>。三次样条插值</p>
<pre><code>f = interp1d(x, y, kind='cubic')
</code></pre>
<p>应该足够好了。在</p>