Вопрос

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