Piecewise Interpolation: Zero Degree Spline Interpolation
0 Degree Spline Interpolation
Given a set of
data points
, a spline of degree 0 can be defined as:
![Rendered by QuickLaTeX.com \[ y=\begin{cases} y_1,&x\in [x_1, x_2) \\ y_2,&x\in [x_2, x_3) \\ \vdots & \vdots \\ y_{k-1},&x\in [x_{k-1}, x_k) \\ y_k, & x=x_k \end{cases} \]](https://engcourses-uofa.ca/wp-content/ql-cache/quicklatex.com-449a661786f17d9dc8be1bc4c3fa335b_l3.png)
In the previous spline definition, the interpolated value in the interval
is equal to the data value
. Alternatively, the interpolated value in the interval
can be set equal to the data value
. In this case,
can be defined as follows:
![Rendered by QuickLaTeX.com \[ y=\begin{cases} y_1,&x=x_1\\ y_2,&x\in (x_1, x_2] \\ \vdots \vdots \\ y_k,&x\in (x_{k-1}, x_k] \end{cases} \]](https://engcourses-uofa.ca/wp-content/ql-cache/quicklatex.com-554df6c31423e8a7f2e634092e963c1b_l3.png)
