Could be mega cool if an interpolation of an AxisArray would allow for indexing as if it was an AxisArray.
So right now this works:
A = AxisArray(rand(length(22:2:60)), Axis{:time}(22s:2s:60s))
a = interpolate(A, BSpline(Constant()), OnCell())
but when indexing into a, I need to used standard indices, a[1:2], to get the values I'd get with A[22s..24s].
This functionality makes a lot of sense to me because the predictor variable is baked into the AxisArray, suppling the interpolation with everything it needs! This will also expand nicely into Images.jl's use of AxisArray and all the other packages (Plots probably)
Could be mega cool if an interpolation of an
AxisArraywould allow for indexing as if it was anAxisArray.So right now this works:
but when indexing into
a, I need to used standard indices,a[1:2], to get the values I'd get withA[22s..24s].This functionality makes a lot of sense to me because the predictor variable is baked into the
AxisArray, suppling the interpolation with everything it needs! This will also expand nicely intoImages.jl's use ofAxisArrayand all the other packages (Plotsprobably)