MHB What is the difference between a linear spline and a linear B-spline?

  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Linear
AI Thread Summary
The discussion focuses on constructing a linear spline that connects specified points and values, specifically at x = -1, 0, and 1. A proposed linear spline function is presented, defined piecewise with two segments. The conversation also differentiates between linear splines and B-splines, noting that B-splines are a specific category of splines characterized by minimal support and the ability to represent any spline function as a linear combination of B-splines. It is clarified that while linear splines and linear B-splines may have similar forms, they possess different properties, particularly regarding continuity and control points. The importance of understanding these distinctions is emphasized for accurate spline construction.
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

We want to construct a linear spline that at the points $x_0=-1$, $x_1=0$, $x_2=1$ has the values $b_0=0$, $b_1=1$ and $b_2=3$.

The spline should get from $S_{x,1}$ with $x=\{x_0, x_1, x_2\}$ to $[-1,1]$.

Do we want to find a function of the following form:

$$s(x)=\begin{cases}a_1x+b_1 & x\in [x_0, x_1] \\ a_2x+b_2 & x\in [x_1, x_2]\end{cases}$$
that satisfies the given values? (Wondering)
B-splines belong to a specific category of splines, right? What are the differences between the B-splines and other splines? (Wondering)
 
Mathematics news on Phys.org
mathmari said:
Hey! :o

We want to construct a linear spline that at the points $x_0=-1$, $x_1=0$, $x_2=1$ has the values $b_0=0$, $b_1=1$ and $b_2=3$.
The spline should get from $S_{x,1}$ with $x=\{x_0, x_1, x_2\}$ to $[-1,1]$.

Do we want to find a function of the following form:
$$s(x)=\begin{cases}a_1x+b_1 & x\in [x_0, x_1] \\ a_2x+b_2 & x\in [x_1, x_2]\end{cases}$$
that satisfies the given values?

Hey mathmari!

Yep. (Nod)

mathmari said:
B-splines belong to a specific category of splines, right? What are the differences between the B-splines and other splines? (Wondering)

From wiki:
In mathematics, a spline is a special function defined piecewise by polynomials.

and:
In the mathematical subfield of numerical analysis, a B-spline, or basis spline, is a spline function that has minimal support with respect to a given degree, smoothness, and domain partition. Any spline function of given degree can be expressed as a linear combination of B-splines of that degree.

(Nerd)

To be fair, I originally learned that splines are indeed piecewise functions defined by polynomials.
And usually those polynomials are of the order 3 with 1st and 2nd order continuity at the knots.
The main families of 3rd order splines with 1st and 2nd order continuity that I learned were:
  • Hermite spline: defined to pass exactly through the control points. Each piece is defined by 4 control points.
  • Bézier spline: defined to pass through control points with specific tangent vectors at those control points. Each piece is define by 2 control points and 2 tangents.
  • B-Spline: defined to pass through first and last point, and otherwise pass between the control points with a tangent corresponding to the neighboring points. Each piece is defined by 4 control points.
(Thinking)
 
So we get the linear spline function: \begin{equation*}s(x)=\begin{cases}p_1(x)=x+1 & x\in [-1, 0] \\ p_2(x)=2x+1 & x\in [0, 1]\end{cases}\end{equation*}

If we want to construct a linear B-spline, would we have to do something else?

Or do they have the same form as a linear spline but just have different properties?

(Wondering)
I like Serena said:
From wiki:
In mathematics, a spline is a special function defined piecewise by polynomials.

and:
In the mathematical subfield of numerical analysis, a B-spline, or basis spline, is a spline function that has minimal support with respect to a given degree, smoothness, and domain partition. Any spline function of given degree can be expressed as a linear combination of B-splines of that degree.

(Nerd)

To be fair, I originally learned that splines are indeed piecewise functions defined by polynomials.
And usually those polynomials are of the order 3 with 1st and 2nd order continuity at the knots.
The main families of 3rd order splines with 1st and 2nd order continuity that I learned were:
  • Hermite spline: defined to pass exactly through the control points. Each piece is defined by 4 control points.
  • Bézier spline: defined to pass through control points with specific tangent vectors at those control points. Each piece is define by 2 control points and 2 tangents.
  • B-Spline: defined to pass through first and last point, and otherwise pass between the control points with a tangent corresponding to the neighboring points. Each piece is defined by 4 control points.
(Thinking)


What exatcly does "pass through first and last point" mean? (Wondering)
 
mathmari said:
So we get the linear spline function: \begin{equation*}s(x)=\begin{cases}p_1(x)=x+1 & x\in [-1, 0] \\ p_2(x)=2x+1 & x\in [0, 1]\end{cases}\end{equation*}

If we want to construct a linear B-spline, would we have to do something else?

Or do they have the same form as a linear spline but just have different properties?

For a linear spline there's not really a choice.
We have insufficient parameters to control the 1st and 2nd order derivatives.
So I think a linear spline function and a linear B-spline may indicate the same function. (Thinking)

mathmari said:
What exatcly does "pass through first and last point" mean?

That it looks like this:
View attachment 7702
In this example the B-spline starts at the first point and ends at the last point.
The B-spline does not pass through any of the other points. (Thinking)
 

Attachments

  • 400px-B-spline_curve.svg.png
    400px-B-spline_curve.svg.png
    3.9 KB · Views: 111
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Replies
1
Views
2K
Replies
8
Views
2K
Replies
4
Views
2K
Replies
2
Views
2K
Replies
1
Views
1K
Replies
22
Views
5K
Replies
20
Views
2K
Back
Top