Skip to content
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

Interpolation convenience methods for higher dimensional data #118

Open
cnrrobertson opened this issue Jun 17, 2022 · 0 comments
Open

Interpolation convenience methods for higher dimensional data #118

cnrrobertson opened this issue Jun 17, 2022 · 0 comments

Comments

@cnrrobertson
Copy link

It would be helpful to have methods for interpolating an n-dimensional array along a given axis as was discussed in #67 (comment).

This is currently possible just by "vectorizing" data along that dimension. Example:

data_3d = collect(reshape(1:125,5,5,5))
time = 1:5
vectorized_data = collect.(eachslice(data_3d,dims=3))
spline = CubicSpline(vectorized_data, t)

Is there an interest in having these conveniences or should that be left to the user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant