tomazas / k2-course Goto Github PK
View Code? Open in Web Editor NEWCubic spline interpolation
Home Page: https://code.google.com/p/k2-course
License: MIT License
Cubic spline interpolation
Home Page: https://code.google.com/p/k2-course
License: MIT License
Kadangi 2-asias isvetines jau galima nustatyti, tai butina patobulinti
Spline klase, kad butu galima nurodyti/nustatyti ir pirmasias isvetines.
am tikslui galima ivesti papildoma parametra generuojant splaina,
nurodanti isvestines tipa.
Original issue reported on code.google.com by be.lietaus
on 17 Jan 2010 at 10:50
Reikia sukurti klase, kuri ivestu funkcijos reiksmiu lentele is failo.
Failo struktura gali buti paprasta:
x0 y0
x1 y1
... ...
xn yn
Taip pat, sioje klaseje turetu buti ir metodas, kuris uzpildytu Spline
procedura naujais duomenimis(taskais) ir iskviestu Spline skaiciavimo
procedura.
Original issue reported on code.google.com by be.lietaus
on 17 Jan 2010 at 10:37
Reikia pradet rengti ataskaita.
Original issue reported on code.google.com by be.lietaus
on 22 Jan 2010 at 5:46
Butina istestuoti kuo daugiau funkciju, susidaryti ju reiksmiu lenteles ir
patikrinti su programa ivedant (sudaryti daug testu).
Be to, reikia failo pasirinkime nurodyti kita failo tipa (ne standartini)!
Ivesti duomenis galima kad ir is '.txt' failo arba bet kokio, o isvesti i
koki '.rez' ar pan. tipa arba bet koki.
Original issue reported on code.google.com by be.lietaus
on 20 Jan 2010 at 9:21
public float eval(int n, float x[], float y[], float m[], float t) {
if (t < x[0] || t > x[n - 1]) return 0.0f;
int i = 1;
while (t > x[i]) i++;
float h = x[i] - x[i - 1];
float t1 = x[i] - t;
float t2 = t - x[i - 1];
float p1 = t1 * t1 * t1 / 6.0f;
float p2 = t2 * t2 * t2 / 6.0f;
float s1 = y[i - 1] - m[i - 1] * h * h / 6.0f;
float s2 = y[i] - m[i] * h * h / 6.0f;
return (m[i - 1] * p1 + m[i] * p2 + s1 * t1 + s2 * t2) / h;
}
Reikia sudet komponentus i ekrana daugmaz pagal sablona ar daugmaz pagal
savo nuoziura. Komponentu sujungti kol kas su kodu dar nebutina, nes dar
reikia tobulinti pati koda.
Be to ta valdymo paneli galima pailginti pagal Y asi jei reikia.
Original issue reported on code.google.com by be.lietaus
on 19 Jan 2010 at 10:02
Pakeisti visus statinius masyvus dinaminiais ArrayList. Patikrinti veikima
bei isvalyma.
Original issue reported on code.google.com by be.lietaus
on 20 Jan 2010 at 9:31
Galima padaryti papildomai tinkleli is sviesiai pilkos spalvos.
Original issue reported on code.google.com by be.lietaus
on 20 Jan 2010 at 9:27
Reikia sujungti komponentus su kodu:
nustatyti isvestines ir ju tipa kai iveda vartotojas,
patikrinti kaip veikia tasku iterpimas klaviatura ir pele,
kaip veikia tasku iterpimas jau redaguojant uzloadinta funkcija
Original issue reported on code.google.com by be.lietaus
on 20 Jan 2010 at 9:17
Generuojant splaina reikia, kad tasku koordinates (x,y) visada butu
surikiuotos didejimo tvarka pagal x.
Reikia parasyti rikiavima nurodytam tasku masyvui ir ji panaudoti Spline
klaseje pries splaino generavima.
Original issue reported on code.google.com by be.lietaus
on 17 Jan 2010 at 10:53
Galima spresti
1. Išvedant/Įvedant koordinates iš failo ir jas keičiant pagal lango x,y ir
mastelį.
2. Keisti skaičiuojant
P.S. šeip neturiu ką veikt tau bandau sukurt :)
Original issue reported on code.google.com by [email protected]
on 19 Jan 2010 at 10:58
Reikia padaryti grafine sasaja su vartotoju.
Turi buti tokie dalykai:
0. Koordinaciu plokstuma.
1. Splaino generavimo metodo pasirinkimas - is lenteles ar deliojant
taskus. Note: Taskai gali buti deliojami pele arba ivedant koordinates
klaviatura!
2. Krastiniu salygu pasirinkimas ir galimybe ivesti reiksmes.
3. Viska nu-resetinti, kad darba butu galima pradeti is naujo ar pakartoti.
4. [low-priority] Galimybe issaugoti skaiciavimo rezultatus.
PASTABA: Lango dydis turi automatiskai talpinti visa splaina ir jo taskus
- todel reikalinga 'auto-zoom' galimybe koordinaciu plokstumoje.
Original issue reported on code.google.com by be.lietaus
on 17 Jan 2010 at 10:46
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.