-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-dimensional linear trend #1
Comments
@kuchaale Thanks but your solution only works because Even if one manages to do that, What I want to do is to make a robust and flexible function that fit a linear trend and optionally compute some confidence intervals relative to this trend. I think there is some serious work to do to achieve that since it is not implemented in numpy functions for ndarrays. |
@serazing I did not know that In my X-regression project I used statsmodels project to get more sophisticated regression functions, e.g. confidence intervals or p-values. I achieved desirable results using xarray functions such as |
I recently added something similar using |
Hi @serazing , Great library! My xrarray(elevation_xarray):- <xarray.DataArray 'elevation' (time: 29, lat: 556, lon: 743)>
Coordinates:
and the function I call is:- elevation_trend=xfit.linreg(elevation_xarray,dim='time') ~/glacierhack_2018/xscale/xscale/signal/fitting.py in linreg(array, dim, coord) ~/glacierhack_2018/xscale/xscale/signal/fitting.py in polyfit(array, deg, dim, coord) TypeError: 'NoneType' object is not subscriptable |
Thanks @ShashankBice for this feedback. Cheers |
Hi @serazing , I was just wondering if there is an intelligent way to ignore nans by the fitter function, like suppose if I have 15 values along a dimension and one of them has nan, can I use the other 14 to compute linear regression and ignore the one data with nan ? Thanks! |
Hi @ShashankBice, |
I am looking for a multi-dimensional linear fit method based on
dask
in order to efficiently remove linear trends before computing fft inxscale.spectral.fft.ftt
.The text was updated successfully, but these errors were encountered: