@@ -207,7 +207,7 @@ function integrate(X::NTuple{N,AbstractVector}, Y::AbstractArray{T,N}, ::Trapezo
207
207
midpnts = map (_midpoints, X)
208
208
Δ (x:: AbstractVector ) = length (x) > 1 ? diff (x) : 1
209
209
Δxs = map (Δ, X)
210
- interp = LinearInterpolation (X,Y)
210
+ interp = linear_interpolation (X,Y)
211
211
f ((Δx,x)) = prod (Δx)* interp (x... )
212
212
return sum (f, zip (product (Δxs... ), product (midpnts... )))
213
213
end
@@ -216,7 +216,7 @@ function integrate(X::NTuple{N,AbstractVector}, Y::AbstractArray{T,N}, ::Trapezo
216
216
midpnts = map (_midpoints, X)
217
217
Δ (x:: AbstractVector ) = length (x) > 1 ? x[2 ] - x[1 ] : 1
218
218
Δx = prod (Δ, X)
219
- interp = LinearInterpolation (X,Y)
219
+ interp = linear_interpolation (X,Y)
220
220
f (x) = interp (x... )
221
221
return Δx* sum (f, product (midpnts... ))
222
222
end
@@ -225,7 +225,7 @@ function integrate(X::NTuple{N,AbstractRange}, Y::AbstractArray{T,N}, ::Trapezoi
225
225
midpnts = map (_midpoints, X)
226
226
Δ (x:: AbstractVector ) = length (x) > 1 ? step (x) : 1
227
227
Δx = prod (Δ, X)
228
- interp = LinearInterpolation (X,Y)
228
+ interp = linear_interpolation (X,Y)
229
229
f (x) = interp (x... )
230
230
return Δx* sum (f, product (midpnts... ))
231
231
end
0 commit comments