From 9b9faa378e39cae79632c9af1a96a30521ddf544 Mon Sep 17 00:00:00 2001 From: Richard Christie Date: Wed, 15 May 2024 12:57:43 +1200 Subject: [PATCH] Improve cubic hermite basis function documentation --- src/scaffoldmaker/utils/interpolation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scaffoldmaker/utils/interpolation.py b/src/scaffoldmaker/utils/interpolation.py index 6ba3ee6b..42a68b86 100644 --- a/src/scaffoldmaker/utils/interpolation.py +++ b/src/scaffoldmaker/utils/interpolation.py @@ -26,7 +26,7 @@ def getCubicHermiteBasis(xi): """ - :return: 4 basis functions for x1, d1, x2, d2 + :return: 4 cubic Hermite basis function values for x1, d1, x2, d2 at xi. """ xi2 = xi*xi xi3 = xi2*xi @@ -54,7 +54,7 @@ def interpolateCubicHermite(v1, d1, v2, d2, xi): def getCubicHermiteBasisDerivatives(xi): """ - :return: 4 derivatives of basis functions for x1, d1, x2, d2 + :return: 4 cubic Hermite basis function first derivative values for x1, d1, x2, d2 at xi. """ xi2 = xi*xi df1 = -6.0*xi + 6.0*xi2