원시데이터 수집 시스템
선정목록으로

ndsplines: A Python Library for Tensor-Product B-Splines of Arbitrary Dimension

관련 모빌리티 소재 · (4) 카시트 모듈

기본 정보

저자
  1. Benjamin W. L. Margolis — University of California, Davis
  2. Kenneth R. Lyons — University of California, Davis
DOI
10.21105/joss.01745
저널
The Journal of Open Source Software
발행년도
2019
발행기관
Open Journals
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.21105/joss.01745
토픽
Tribology and Lubrication Engineering
OpenAlex ID
W2981757357

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (4) 카시트 모듈
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 카시트 모듈' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

In order to use data driven models in analysis, the data must be projected onto a set of basis functions to allow the model to be evaluated over a continuous domain.Additionally, the known form of the basis functions enables the use of calculus and other symbolic operations to be performed on the representation of the data model.

본문 6,742자

본문 펼치기
# ndsplines: A Python Library for Tensor-Product B-Splines of Arbitrary Dimension Benjamin W. L. Margolis <sup>1</sup> and Kenneth R. Lyons <sup>1</sup> 1 University of California, Davis DOI: [10.21105/joss.01745](https://doi.org/10.21105/joss.01745) Software - [Review](https://github.com/openjournals/joss-reviews/issues/1745) - [Repository](https://github.com/kb-press/ndsplines/) - [Archive](https://doi.org/10.5281/zenodo.3516465) Submitted: 31 August 2019 Published: 25 October 2019 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License [(CC-BY).](http://creativecommons.org/licenses/by/4.0/) ## Summary In order to use data driven models in analysis, the data must be projected onto a set of basis functions to allow the model to be evaluated over a continuous domain. Additionally, the known form of the basis functions enables the use of calculus and other symbolic operations to be performed on the representation of the data model. B-Splines are a particularly useful basis because they have beneficial analytic properties and because many efficient algorithms for their creation, manipulation, and evaluation have already been developed (De Boor, 1978). Some of the beneficial properties of the B-Spline basis functions include: a closed support, smoothness, and amenability to efficient and stable algorithms. Strictly speaking, the B-Spline basis functions are 1-dimensional maps from the reals to the reals. However, they can be readily extended to N-dimensions by taking tensor products of B-Splines on orthogonal 1-dimensional spaces for each variable. B-Splines are well studied in the field of computer graphics where they are particularly used in computer aided-design (CAD) and graphic design programs. Due to this popularity, many programming language ecosystems have implementations of 1- and 2-dimensional splines such as might be used to design curves or surfaces. For example, SciPy provides a number of interfaces to Dierckx’s FORTRAN implementation as well as a custom 1-D implementation (Dierckx, 1995; Jones, Oliphant, Peterson, & others, n.d.). However, the authors are only aware of one general N-dimensional splines implementation (De Boor, 1990). ndsplines is a Python package for multivariate B-splines with performant NumPy and C (via Cython) implementations (Behnel et al., 2011; Van Der Walt, Colbert, & Varoquaux, 2011). A primary goal of this package is to provide a unified API for tensor product splines of arbitrary input and output dimension. This implementation is slightly slower than the special-case 1-D and 2-D implementations available from SciPy, but this can be a worthwhile tradeoff to only use one API to work with splines of any dimension. Test coverage is about 90%, and importantly verifies desirable mathematical properties including that the spline evaluation matches other implementations, that the fundamental theorem of calculus holds for any `NDSpline` object, that the accuracy of splines produced by `make_lsq_spline` improves with the signal-to-noise ratio of the sampled data, and that the splines produced by `make_i` `nterp_spline` actually interpolate the data. A general N-dimensional spline implementation is useful for modeling dynamics from data. For example, the American Institute of Aeronautics and Astronautics (AIAA) has proposed a simulation description mark-up language standard (Jackson & Hildreth, 2002). One of the fundamental elements of the mark-up language is an interpolator of aerodynamic data, which often uses three to five independent variables to capture properties of the airflow and orientation. One author has used a precursor to this software package along with SimuPy (Margolis, 2017) to simulate hypersonic entry dynamics in a manner similar to what was described in AIAA’s Margolis et al., (2019). ndsplines: A Python Library for Tensor-Product B-Splines of Arbitrary Dimension. _Journal_ _of_ _Open_ _Source_ _Software_, 1 4(42), 1745. [https://doi.org/10.21105/joss.01745](https://doi.org/10.21105/joss.01745) simulation description mark-up language (D’Souza et al., 2019; Margolis, Okolo, Nikaido, Barton, & D’Souza, 2019). Static stability analysis was also performed using this software package. ## References Behnel, S., Bradshaw, R., Citro, C., Dalcin, L., Seljebotn, D. S., & Smith, K. (2011). Cython: The best of both worlds. _Computing in Science & Engineering_, _13_ (2), 31. [doi:10.1109/mcse.](https://doi.org/10.1109/mcse.2010.118) [2010.118](https://doi.org/10.1109/mcse.2010.118) De Boor, C. (1978). _A_ _practical_ _guide_ _to_ _splines_ (Vol. 27). Springer-Verlag New York. [doi:10.1002/zamm.19800600129](https://doi.org/10.1002/zamm.19800600129) De Boor, C. (1990). _Spline_ _toolbox:_ _For_ _use_ _with_ _MATLAB:_ _User’s_ _guide,_ _march_ _30,_ _1990_ . MathWorks Incorporated. Dierckx, P. (1995). _Curve_ _and_ _surface_ _fitting_ _with_ _splines_ . Oxford University Press. D’Souza, S. N., Okolo, W., Nikaido, B., Yount, B., Tran, J., Margolis, B., Smith, B., et al. (2019). Developing an entry guidance and control design capability using flaps for the lifting Nano-ADEPT. In _AIAA_ _aviation_ _2019_ _forum_ (p. 2901). [doi:10.2514/6.2019-2901](https://doi.org/10.2514/6.2019-2901) Jackson, E. B., & Hildreth, B. (2002). Flight dynamic model exchange using XML. In _AIAA_ _modeling_ _and_ _simulation_ _technologies_ _conference_ _and_ _exhibit_ (p. 4482). [doi:10.2514/6.](https://doi.org/10.2514/6.2002-4482) [2002-4482](https://doi.org/10.2514/6.2002-4482) Jones, E., Oliphant, T., Peterson, P., & others. (n.d.). SciPy: Open source scientific tools for Python. Retrieved from [http://www.scipy.org/](http://www.scipy.org/) Margolis, B. W. (2017). SimuPy: A Python framework for modeling and simulating dynamical systems. _J._ _Open_ _Source_ _Software_, _2_ (17), 396. [doi:10.21105/joss.00396](https://doi.org/10.21105/joss.00396) Margolis, B. W., Okolo, W. A., Nikaido, B., Barton, J. D., & D’Souza, S. N. (2019). Control and simulation of a deployable entry vehicle with aerodynamic control surfaces. In _AAS/aiaa_ _astrodynamics_ _specialist_ _conference,_ _portland,_ _me_ . Van Der Walt, S., Colbert, S. C., & Varoquaux, G. (2011). The NumPy array: A structure for efficient numerical computation. _Computing_ _in_ _Science_ _&_ _Engineering_, _13_ (2), 22. [doi:10.](https://doi.org/10.1109/mcse.2011.37) [1109/mcse.2011.37](https://doi.org/10.1109/mcse.2011.37) Margolis et al., (2019). ndsplines: A Python Library for Tensor-Product B-Splines of Arbitrary Dimension. _Journal_ _of_ _Open_ _Source_ _Software_, 2 4(42), 1745. [https://doi.org/10.21105/joss.01745](https://doi.org/10.21105/joss.01745)

섹션 본문 4문단 · 3,322자

(제목 없음)

1In order to use data driven models in analysis, the data must be projected onto a set of basis functions to allow the model to be evaluated over a continuous domain.Additionally, the known form of the basis functions enables the use of calculus and other symbolic operations to be performed on the representation of the data model.

2B-Splines are a particularly useful basis because they have beneficial analytic properties and because many efficient algorithms for their creation, manipulation, and evaluation have already been developed (De Boor, 1978).Some of the beneficial properties of the B-Spline basis functions include: a closed support, smoothness, and amenability to efficient and stable algorithms.Strictly speaking, the B-Spline basis functions are 1-dimensional maps from the reals to the reals.However, they can be readily extended to N-dimensions by taking tensor products of B-Splines on orthogonal 1-dimensional spaces for each variable.B-Splines are well studied in the field of computer graphics where they are particularly used in computer aided-design (CAD) and graphic design programs.Due to this popularity, many programming language ecosystems have implementations of 1-and 2-dimensional splines such as might be used to design curves or surfaces.For example, SciPy provides a number of interfaces to Dierckx's FORTRAN implementation as well as a custom 1-D implementation (Dierckx, 1995;Jones, Oliphant, Peterson, & others, n.d.).However, the authors are only aware of one general N-dimensional splines implementation (De Boor, 1990).ndsplines is a Python package for multivariate B-splines with performant NumPy and C (via Cython) implementations (Behnel et al., 2011;Van Der Walt, Colbert, & Varoquaux, 2011).A primary goal of this package is to provide a unified API for tensor product splines of arbitrary input and output dimension.This implementation is slightly slower than the special-case 1-D and 2-D implementations available from SciPy, but this can be a worthwhile tradeoff to only use one API to work with splines of any dimension.Test coverage is about 90%, and importantly verifies desirable mathematical properties including that the spline evaluation matches other implementations, that the fundamental theorem of calculus holds for any NDSpline object, that the accuracy of splines produced by make_lsq_spline improves with the signal-to-noise ratio of the sampled data, and that the splines produced by make_i nterp_spline actually interpolate the data.

3A general N-dimensional spline implementation is useful for modeling dynamics from data.For example, the American Institute of Aeronautics and Astronautics (AIAA) has proposed a simulation description mark-up language standard (Jackson & Hildreth, 2002).One of the fundamental elements of the mark-up language is an interpolator of aerodynamic data, which often uses three to five independent variables to capture properties of the airflow and orientation.

4One author has used a precursor to this software package along with SimuPy (Margolis, 2017) to simulate hypersonic entry dynamics in a manner similar to what was described in AIAA's simulation description mark-up language (D' Souza et al., 2019;Margolis, Okolo, Nikaido, Barton, & D'Souza, 2019).Static stability analysis was also performed using this software package.

참고문헌 8건

  1. Flight Dynamic Model Exchange Using XML AIAA Modeling and Simulation Technologies Conference and Exhibit · 2002 10.2514/6.2002-4482
  2. Curve and surface fitting with splines Choice Reviews Online · Association of College and Research Libraries · 1993 10.5860/choice.31-2162
  3. Cython: The Best of Both Worlds Computing in Science & Engineering · AIP Publishing · 2010 10.1109/mcse.2010.118
  4. de Boor, C., A Practical Guide to Splines. Applied Mathematical Sciences 27. Berlin-Heidelberg-New York, Springer-Verlag 1978. XXIV, 392 S., DM 32,50. US $ 17.90 ZAMM ‐ Journal of Applied Mathematics and Mechanics / Zeitschrift für Angewandte Mathematik und Mechanik · Wiley · 1980 10.1002/zamm.19800600129
  5. The NumPy Array: A Structure for Efficient Numerical Computation Computing in Science & Engineering · AIP Publishing · 2011 10.1109/mcse.2011.37
  6. SimuPy: A Python framework for modeling and simulating dynamical systems The Journal of Open Source Software · Open Journals · 2017 10.21105/joss.00396
  7. Developing an Entry Guidance and Control Design Capability Using Flaps for the Lifting Nano-ADEPT AIAA Aviation 2019 Forum · 2019 10.2514/6.2019-2901
  8. Control and Simulation of a Deployable Entry Vehicle with Aerodynamic Control Surfaces AAS/AIAA Astrodynamics Specialist Conference · 2019