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
**NEWS** This package is currently under new maintainership. Please be patient while the new maintainer learns the new package. If you would like to volunteer, please mention this in an issue.
10
7
11
8
**NEWS** v0.9 was a breaking release. See the [news](NEWS.md) for details on how to update.
12
9
13
-
**NEWS** This package is officially looking for a maintainer.
14
-
The original authors are only fixing bugs that affect them personally.
15
-
However, to facilitate transition to a long-term maintainer,
16
-
for a period of time they will make a concerted attempt to review pull requests.
17
-
Step forward soon to avoid the risk of not being able to take advantage of such offers of support.
18
-
19
10
This package implements a variety of interpolation schemes for the
20
11
Julia language. It has the goals of ease-of-use, broad algorithmic
21
12
support, and exceptional performance.
22
13
23
14
Currently this package's support is best
24
15
for [B-splines](https://en.wikipedia.org/wiki/B-spline) and also
25
16
supports irregular grids. However, the API has been designed with
26
-
intent to support more options. Pull-requests are more than welcome!
17
+
intent to support more options. Initial support for Lanczos
18
+
interpolation was recently added. Pull-requests are more than welcome!
27
19
It should be noted that the API may continue to evolve over time.
28
20
29
21
Other interpolation packages for Julia include:
@@ -122,6 +114,6 @@ Interpolations wins in every case, sometimes by a very large margin.
122
114
123
115
## Contributing
124
116
125
-
Work is very much in progress, but and help is always welcome. If you want to help out but don't know where to start, take a look at issue [#5 - our feature wishlist](https://github.com/JuliaMath/Interpolations.jl/issues/5) =) There is also some [developer documentation](doc/devdocs.md) that may help you understand how things work internally.
117
+
Work is very much in progress, but and help is always welcome. If you want to help out but don't know where to start, take a look at issue [#5 - our feature wishlist](https://github.com/JuliaMath/Interpolations.jl/issues/5) =) There is also some [developer documentation](http://juliamath.github.io/Interpolations.jl/latest/devdocs/) that may help you understand how things work internally.
126
118
127
119
Contributions in any form are appreciated, but the best pull requests come with tests!
@testsummary(itp) =="8×20 interpolate(::Array{Float64,2}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"
31
+
@testsummary(itp) =="8×20 interpolate(::Matrix{Float64}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"||
32
+
summary(itp) =="8×20 interpolate(::Array{Float64,2}, BSpline(Quadratic(InPlace(OnCell())))) with element type Float64"
27
33
end
28
34
29
35
@testset"Gridded"begin
30
36
A =rand(20)
31
37
A_x =collect(1.0:2.0:40.0)
32
38
knots = (A_x,)
33
39
itp =interpolate(knots, A, Gridded(Linear()))
34
-
@testsummary(itp) =="20-element interpolate((::Array{Float64,1},), ::Array{Float64,1}, Gridded(Linear())) with element type Float64"
40
+
@testsummary(itp) =="20-element interpolate((::Vector{Float64},), ::Vector{Float64}, Gridded(Linear())) with element type Float64"||
41
+
summary(itp) =="20-element interpolate((::Array{Float64,1},), ::Array{Float64,1}, Gridded(Linear())) with element type Float64"
35
42
36
43
A =rand(8,20)
37
44
knots = ([x^2for x =1:8], [0.2y for y =1:20])
38
45
itp =interpolate(knots, A, Gridded(Linear()))
39
-
@testsummary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, Gridded(Linear())) with element type Float64"
46
+
@testsummary(itp) =="8×20 interpolate((::Vector{Int64},::Vector{Float64}), ::Matrix{Float64}, Gridded(Linear())) with element type Float64"||
47
+
summary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, Gridded(Linear())) with element type Float64"
40
48
41
49
itp =interpolate(knots, A, (Gridded(Linear()),Gridded(Constant())))
42
-
@testsummary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"
50
+
@testsummary(itp) =="8×20 interpolate((::Vector{Int64},::Vector{Float64}), ::Matrix{Float64}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"||
51
+
summary(itp) =="8×20 interpolate((::Array{Int64,1},::Array{Float64,1}), ::Array{Float64,2}, (Gridded(Linear()), Gridded(Constant()))) with element type Float64"
43
52
44
53
# issue #260
45
54
A = (1:4)/4
@@ -48,26 +57,33 @@ using Test
48
57
show(io, MIME("text/plain"), itp)
49
58
str1 =String(take!(io))
50
59
str2 ="4-element interpolate((0.0:0.1:0.3,), ::Array{Float64,1}, Gridded(Linear())) with element type Float64:\n 0.25\n 0.5 \n 0.75\n 1.0"
teststring ="21×41 scale(interpolate(OffsetArray(::Array{Float64,2}, 0:22, 0:42), BSpline(Quadratic(Flat(OnGrid())))), (-5.0:0.5:5.0,$SPACE-4.0:0.2:4.0)) with element type Float64"
80
-
@testsummary(sitp2) == teststring
96
+
teststring2 ="21×41 scale(interpolate(OffsetArray(::Matrix{Float64}, 0:22, 0:42), BSpline(Quadratic(Flat(OnGrid())))), (-5.0:0.5:5.0,$SPACE-4.0:0.2:4.0)) with element type Float64"
0 commit comments