You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the implementation cannot deal with interpolation between two identical values...
For example, let's say you have an array like this : x = [1, 1, 1, 2, 2, 2, 3, missing, 3, 4, 4, 4]
Obviously the result of the interpolation to replace the missing value should be 3 !
But using impute with :interp result in an error impute(x, :interp) ERROR: ArgumentError: range step cannot be zero
In fact in interp.jl, line 33 you do values = Real(start_val):Real(incr):Real(stop_val)
with cause the error due to identical values on the left and right side of the missing in the array.
Can you add an exception in this case ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
It seems that the implementation cannot deal with interpolation between two identical values...
For example, let's say you have an array like this :
x = [1, 1, 1, 2, 2, 2, 3, missing, 3, 4, 4, 4]
Obviously the result of the interpolation to replace the missing value should be 3 !
But using impute with :interp result in an error
impute(x, :interp)
ERROR: ArgumentError: range step cannot be zero
In fact in interp.jl, line 33 you do
values = Real(start_val):Real(incr):Real(stop_val)
with cause the error due to identical values on the left and right side of the missing in the array.
Can you add an exception in this case ?
Thanks.
The text was updated successfully, but these errors were encountered: