문제

I currently have a 252x11 double matrix of data where each column is an individual time series. However, some of the data is missing and I would like to interpolate in order to fill in that data since I later need to use an algorithm that requires no blanks or NaNs. How would I go about doing this?

도움이 되었습니까?

해결책

You may consider using inpaint_nans which is designed to interpolate NaN elements in a 1-d or 2-d array using non-NaN elements. It can also extrapolate, as it does not use a triangulation of the data. It also allows different approaches to the interpolation.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top