summaryrefslogtreecommitdiff
path: root/macros/pchips.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/pchips.sci')
-rw-r--r--macros/pchips.sci3
1 files changed, 1 insertions, 2 deletions
diff --git a/macros/pchips.sci b/macros/pchips.sci
index c639ca2..bddcc42 100644
--- a/macros/pchips.sci
+++ b/macros/pchips.sci
@@ -1,11 +1,9 @@
function d = pchips(x,y,delta)
-
//Piecewise Cubic Hermite Interpolating Polynomial (PCHIP)
//Parameters
// x: a vector
// y: is Y is vector then it must have the same length as x and Y is matrix then the last dimension of Y must equal
//length(X).
-
// delta: Points for interpolation
// d: vector of interpolantant at delta
//Examples:
@@ -14,6 +12,7 @@ function d = pchips(x,y,delta)
//xq1 = -3:.01:3;
//v=pchips(x,y,xq1)
//
+
n = length(x);
if n==2