Is There a General Solution for Interpolating Splines in N Dimensions?

  • Context: Graduate 
  • Thread starter Thread starter christianjb
  • Start date Start date
  • Tags Tags
    Dimensions
Click For Summary
SUMMARY

The discussion focuses on the challenges of interpolating splines in N dimensions, specifically addressing cubic and quartic splines. For cubic interpolation in two dimensions, there is a mismatch between knowns (12) and unknowns (10 coefficients), prompting the suggestion to use quartic interpolation, which accommodates 15 coefficients with 5 points. The conversation raises the question of whether a general solution exists for N-dimensional spline interpolation, acknowledging potential continuity issues across boundaries.

PREREQUISITES
  • Understanding of cubic and quartic spline interpolation
  • Familiarity with gradient concepts in multivariable calculus
  • Knowledge of triangular numbers and their application in determining coefficients
  • Basic principles of dimensional analysis in mathematical functions
NEXT STEPS
  • Research the mathematical foundations of N-dimensional spline interpolation
  • Explore the implementation of quartic splines in computational tools like MATLAB or Python's SciPy
  • Investigate continuity conditions for splines across boundaries in multidimensional spaces
  • Examine existing literature on spline interpolation methods in higher dimensions
USEFUL FOR

Mathematicians, data scientists, and engineers involved in computational geometry, numerical analysis, or any field requiring advanced interpolation techniques in multiple dimensions.

christianjb
Messages
529
Reaction score
1
Let's say you know x1, x2 and y1=y(x1), y2=y(x2) and
gradients dy/dx at x1 and dy/dx at x2.

That's 4 knowns. Thus, you can uniquely define the parameters in a cubic curve y=a+bx+cx^2+dx^3, which has 4 unknowns, that interpolate the function between x1 and x2. The interpolated cubic spline can be made to give the correct y values and derivatives at x1, x2.

OK, for 2 dimensions- each point has 1 y value and it also has a gradient, where the gradient now has two components. Thus, each point has 3 knowns attached to it.

If you have 4 points- say on the corners of a square, where each point has known y values and known gradients, then there are 12 knowns altogether. Unfortunately, a cubic equation in two dimensions has (the triangular number) 10 coefficients. So there's a mismatch between the number of knowns and unknowns.

One solution seems to be to use a quartic interpolation, which has (the triangular number) 15 coefficients. Then you could use a 5 points, (for example, corners of a square, with a point in the middle) with 5*3 = 15 knowns, and there would be an even match between knowns and unknowns.

5 points in 3 dimensions also seems to work.

Is there a general way of solving this problem for N dimensions? I'm sure this stuff must have been worked out.
 
Mathematics news on Phys.org
Hmmm, I'm having second thoughts about this.

Even if you get a spline that's continuous within a bounded area, it's not in general continuous across the boundaries between areas.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
5K
  • · Replies 13 ·
Replies
13
Views
3K