kallemov / fast-spatial-interpolation-for-irregular-grid Goto Github PK
View Code? Open in Web Editor NEWfast explicit interpolation for irregular grid (scattered points)
fast explicit interpolation for irregular grid (scattered points)
I'm finding the interpolation gives unexpected results when the points form a box that gets progressively larger. Ugly test code snippet follows...
#define qqa (360.)
#define zzi (7.)
double sbf[4] = {100.,102,103.,104.};
double sbxa[4] = {qqa-120.-zzi,qqa-120.-zzi,360. -119.5,360. -119.5};
double sbya[4] = {38.+zzi,38.25+zzi,38.25,38. };
double sbx = qqa-119.85;
double sby = 38.18;
double sbv = 0;
// sb_init(sbf, sbxa, sbya);
// sbv = sb_interp(sbx, sby);
// when qqa = 0
// zzi of 7 returns +99
// zzi of 5 returns +135
// zzi of 2 returns -442
// zzi of 1 returns -4208
// zzi of 0 returns +810576
// when qqa = 360
// zzi of 7 returns -786
// zzi of 5 returns +2900
// zzi of 2 returns +3605
// zzi of 1 returns +225578
// zzi of 0 returns -93498082
``
Can the interpolation routines be formulated slightly differently so as to provide more numerical stability?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.