@@ -207,7 +207,7 @@ function integrate(X::NTuple{N,AbstractVector}, Y::AbstractArray{T,N}, ::Trapezo
207207 midpnts = map (_midpoints, X)
208208 Δ (x:: AbstractVector ) = length (x) > 1 ? diff (x) : 1
209209 Δxs = map (Δ, X)
210- interp = LinearInterpolation (X,Y)
210+ interp = linear_interpolation (X,Y)
211211 f ((Δx,x)) = prod (Δx)* interp (x... )
212212 return sum (f, zip (product (Δxs... ), product (midpnts... )))
213213end
@@ -216,7 +216,7 @@ function integrate(X::NTuple{N,AbstractVector}, Y::AbstractArray{T,N}, ::Trapezo
216216 midpnts = map (_midpoints, X)
217217 Δ (x:: AbstractVector ) = length (x) > 1 ? x[2 ] - x[1 ] : 1
218218 Δx = prod (Δ, X)
219- interp = LinearInterpolation (X,Y)
219+ interp = linear_interpolation (X,Y)
220220 f (x) = interp (x... )
221221 return Δx* sum (f, product (midpnts... ))
222222end
@@ -225,7 +225,7 @@ function integrate(X::NTuple{N,AbstractRange}, Y::AbstractArray{T,N}, ::Trapezoi
225225 midpnts = map (_midpoints, X)
226226 Δ (x:: AbstractVector ) = length (x) > 1 ? step (x) : 1
227227 Δx = prod (Δ, X)
228- interp = LinearInterpolation (X,Y)
228+ interp = linear_interpolation (X,Y)
229229 f (x) = interp (x... )
230230 return Δx* sum (f, product (midpnts... ))
231231end
0 commit comments