Comments (5)
Hello. What is your expected results? Can you share all the values that you used?
from scidart.
[0.01, 0.012],
[0.02, 0.024],
[0.03, 0.040],
[0.04, 0.050],
[0.05, 0.062],
[0.06, 0.075],
[0.07, 0.091],
[0.08, 0.099],
[0.09, 0.115]
these are the x and y values. after PolyFit(x,y,3). I was expecting a 3 degree polynomial but I am getting something like this 37450396823.87154 x^8 + -14811507935.892578 x^7 + 2471180555.4509788 x^6 + -226305555.54582798
x^5 + 12373211.80501761 x^4 + -410070.1388709476 x^3 + 7937.929563144283 x^2 + -79.11511904410882 x + 0.315999999986331 (R^2 = -5539833555322.959).
my code is something like
List x = [];
List y = [];
for (int i = 0; i < n; i++) {
x.add(ar[i][0]);
y.add(ar[i][1]);}
var xf = Array(x);
var yf = Array(y);
const int s = 3;
var eq = PolyFit(xf, yf, s);
print(eq);
and the result I have shown above that is 8 degree polynomial
Thankyou for such an amazing package
from scidart.
I got it. I need time to analyse the problem, maybe this can be a fault in the polyfit algorithm, all that statical approximation it's really hard to implement and debug.
It's really great see someone enjoying the package, if possible, tell me more about what you doing. A show case of SciDart is amazing thing to put in your official website.
from scidart.
I am working on a college project, which is going to be applied on industrial practices of absorbing columns. Actually this project is based on the application of graphical techniques like plotting graph of the data and doing calculation on the curve. I want to make a 3 degree polynomial equation, Kindly help me for this project and I am very grateful that you are helping me.
from scidart.
I fixed the PolyFit degree problem, please, update to version scidart 0.0.1-dev.9
from scidart.
Related Issues (20)
- Unexpected result from fft on 256 array HOT 3
- Question: What's the equivalent of indexing of numpy HOT 1
- Array2d.fromArray is not deep copying the arrays in the list of arrays HOT 2
- Typos in the Source Code HOT 7
- Infinite loop, memory exhausted with PolyFit(x, y, degree) HOT 2
- The name of arange() HOT 6
- Problem adding to 2D array HOT 1
- Normal Distributions HOT 3
- Plans to implement a function to extract MFCCs HOT 9
- rifft is giving diffrent values from np.fft.irfft
- Array2d add HOT 3
- arrayComplexConcat is slow HOT 1
- Benchmarks for common functions. HOT 1
- Polynomial regression
- Finding root of a function HOT 1
- PolyFit function cannot calculate third-order polynomial regression
- median calculation does not sort before getting mid value
- SVD calculation wrong answer
- The mode implementation is wrong
- Hamming window not symmetrical.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scidart.