scipy.interpolate.

splint#

scipy.interpolate.splint(a, b, tck, full_output=0)[原始碼]#

評估 B-spline 在兩個給定點之間的定積分。

舊版

此函數被視為舊版,將不再接收更新。雖然我們目前沒有移除它的計畫,但我們建議新程式碼改用更現代的替代方案。具體來說,我們建議建構一個 BSpline 物件並使用其 integrate 方法。

參數:
a, bfloat

積分區間的端點。

tcktuple 或 BSpline 實例

如果為 tuple,則應為長度為 3 的序列,包含節點向量、B-spline 係數和 spline 的次數(請參閱 splev)。

full_outputint,選用

非零值以傳回選用輸出。

傳回值:
integralfloat

結果積分值。

wrkndarray

一個陣列,包含在節點集上定義的標準化 B-spline 的積分值。(僅在 full_output 為非零值時傳回)

註解

splint 靜默地假設 spline 函數在資料區間 (a, b) 之外為零。

不建議直接操作 tck-tuple。在新程式碼中,建議優先使用 BSpline 物件。

參考文獻

[1]

P.W. Gaffney, “The calculation of indefinite integrals of b-splines”, J. Inst. Maths Applics, 17, p.37-41, 1976.

[2]

P. Dierckx, “Curve and surface fitting with splines”, Monographs on Numerical Analysis, Oxford University Press, 1993.

範例

範例在教學文件中提供。