import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import UnivariateSpline x = np.linspace(-3, 3, 50) y = np.exp(-x**2) + 0.1 * np.random.randn(50) # 通过random方法添加噪声数据 plt.plot(x, y, 'ro') # 平滑参数使用默认值 spl = UnivariateSpline(x, y) xs ...
import matplotlib.pyplot as plt from scipy.optimize import curve_fit from scipy.interpolate import interp1d from scipy.signal import savgol_filter import numpy as np x = np.array([0.0, 2.4343476531707129, 3.606959459205791, 3.9619355597454664, 4.3503348239356558, 4.6651002761894667, 4.9360228447915109, 5.18395...
main bls .gitignore LICENSE README.rst filter.py medium_filter.py ruth_bls2.py setup.py Latest commit RuthAngus filter Jun 21, 2013 995b9b2·Jun 21, 2013 History History File metadata and controls executable file · 240 lines (213 loc) · 6.94 KB ...
smooth.png /usr/lib/python3/dist-packages/silx/resources/gui/icons/math-smooth.svg /usr/lib/python3/dist-packages/silx/resources/gui/icons/math-square-amplitude.png /usr/lib/python3/dist-packages/silx/resources/gui/icons/math-square-amplitude.svg /usr/lib/python3/dist-packages/silx/...