[Numpy-discussion] Re: Polyfit error in displacement

2024-03-26 Thread Robert Kern
On Tue, Mar 26, 2024 at 3:39 PM Luca Bertolotti wrote: > Thanks for your reply yes it seems more appropriate a cubic spline but how > can i get what they call SC > I don't think any of us has enough context to know what "SC" is. It's not a standard term that I'm aware of. -- Robert Kern

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-26 Thread Luca Bertolotti
hello i'm not sire of what they do and I don't have the source I see just that they wrote y= f(x) 3rd order [image: image.png] using p = cheb.Chebyshev.fit(x, y, 3 , window=[...]) I see that if I change the upper value of the window I can reach similar solution but I don't understand the

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Andrea Gavana
On Mon, 25 Mar 2024 at 20:09, Charles R Harris wrote: > > > On Mon, Mar 25, 2024 at 11:28 AM Luca Bertolotti < > luca72.bertolo...@gmail.com> wrote: > >> Hello >> in a vb program they use 3rd degree approx and get this value including >> displacement:(SC) >> [image: image.png] >> >> Ii think

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Charles R Harris
On Mon, Mar 25, 2024 at 11:28 AM Luca Bertolotti < luca72.bertolo...@gmail.com> wrote: > Hello > in a vb program they use 3rd degree approx and get this value including > displacement:(SC) > [image: image.png] > > Ii think that i'm doing the same with numpy but I get different value does > anyone

[Numpy-discussion] Re: Polyfit error in displacement

2024-03-25 Thread Dom Grigonis
Hello Luca, I am a bit confused by the output of VB script. Equation is: y = f(x), where x is in the order of 0-2K y is in the order of 5-10K The output of fitted polynomial is in y-space, thus I would expect fitted values to be similar to those of Y. Now, sc values are very small and