文件名称:matlab代码cox-bspline:通过Cox实现Python/Numpybspline的实现-deBoor
文件大小:83KB
文件格式:ZIP
更新时间:2024-06-12 14:07:50
系统开源
Matlab代码考克斯Bspline.py 通过Cox-de Boor算法实现Bspline基本函数的Python / Numpy实现。 还提供了高阶微分,并置矩阵生成以及最小化的过程API(主要用于处理结向量),这可能有助于转换MATLAB代码。 用法 import numpy import bspline import bspline . splinelab as splinelab ## Spline setup and evaluation p = 3 # order of spline (as-is; 3 = cubic) nknots = 11 # number of knots to generate (here endpoints count only once) tau = [ 0.1 , 0.33 ] # collocation sites (i.e. where to evaluate) knots = numpy . linspace ( 0 , 1 , nknots ) # create a knot vector without endpoint repea
【文件预览】:
bspline-master
----setup.py(7KB)
----.gitignore(6B)
----LICENSE.md(1KB)
----CHANGELOG.md(143B)
----README.md(3KB)
----.noserc(40B)
----bspline()
--------__init__.py(628B)
--------splinelab.py(6KB)
--------bspline.py(10KB)
----test()
--------demo.py(6KB)
--------bspline.test.ipynb(93KB)