Skip to content

Commit

Permalink
revert to keep spl
Browse files Browse the repository at this point in the history
  • Loading branch information
szcf-weiya committed Oct 8, 2023
1 parent c7b44ec commit d2e263a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono_decomp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ MDCS = mono_decomp_cs

function cubic_spline(x::AbstractVector{T}, y::AbstractVector{T}, xnew::AbstractVector{T}; J = 4) where T <: AbstractFloat
spl = MonotoneSplines.bspline(x, y, J)
return MonotoneSplines.predict(spl, x), MonotoneSplines.predict(spl, xnew)#, spl
return MonotoneSplines.predict(spl, x), MonotoneSplines.predict(spl, xnew), spl
end

mono_decomp_cs(J) = (x, y; kw...) -> mono_decomp_cs(x, y; J = J, kw...)
Expand Down

0 comments on commit d2e263a

Please sign in to comment.