How to interpolate big data with small deviation?

Click For Summary

Homework Help Overview

The discussion revolves around the challenge of interpolating a large dataset consisting of over 9 million points to find a polynomial surface that fits the data with a deviation smaller than 0.01. The variables involved are x, y, and z, with specified ranges for each.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss various functions attempted in Matlab for polynomial fitting and question the inclusion of specific polynomial terms. There is mention of using least squares fitting and the need to consider the nature of the surface, including singularities and curvature.

Discussion Status

Some participants have provided suggestions regarding polynomial terms and fitting methods, while others express challenges with achieving the desired accuracy. There is an ongoing exploration of the problem without a clear consensus on the best approach.

Contextual Notes

Participants note the absence of symmetry in the data and the existence of singularities, which may complicate the fitting process. Additionally, there are references to specific data sources that could be utilized for further attempts.

a.gardonova
Messages
3
Reaction score
0
Hi,
I've got a problem. There is over 9 milions points in my .txt. I have to find polynom for surface of this points with deviation smaller then 0.01 (x [-3:3], y[-3,3], z [-9,9]).
I try many functions in Matlab, but no answer.
Thank for help.
B
 
Physics news on Phys.org
Which functions did you try in Matlab? Did you used a fit to determine the prefactors in your polynomials?
Did you consider terms like x*y, x^2*y^4*z and similar? They might be required to approximate your data with a polynomial.
 
Last edited:
Hi,
main wasthis:
m=[0 0 ; 1 0 ;0 1;2 0;2 1; 2 2 ;0 2;1 2; 3 0; 3 1;3 2; 3 3; 0 3;1 3; 2 3];
coeff=least_square_polyfit_xyz(x,y,z,m);
m are combinations of using x and y () so it will make a + b*x + c*y +d*x^2...
bud there are very big diferences between defined z and computed z. The proble is, that my surface is only little curved plane, but there are 2 singularities (ist surface with volcanos).
 
Ah, it is just f(x,y)=z
Do you have to use a polynomial?

11 is missing in your list.

Is there any visible symmetry?
What about terms of 4th order?
 
I repair script, but there is no improve.
This is the source of data, if you can try it. There is no symetry, so I don't know how to do this.
http://m37.fsv.cvut.cz/nm/data.txt
I've tried also 4th order, but also no improve.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
28
Views
4K
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
12K
  • · Replies 8 ·
Replies
8
Views
2K