Skip to content

Commit

Permalink
Last nits
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Nov 12, 2024
1 parent c2627e6 commit e5bd8dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/integrals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function _integral(A::QuadraticSpline{<:AbstractVector{<:Number}}, idx::Number,
α, β = get_parameters(A, idx)
uᵢ = A.u[idx]
Δt = t - A.t[idx]
Δt_full = (A.t[idx + 1] - A.t[idx])
Δt_full = A.t[idx + 1] - A.t[idx]
Δt ** Δt^2 / (3Δt_full^2) + β * Δt / (2Δt_full) + uᵢ)
end

Expand Down
4 changes: 2 additions & 2 deletions src/interpolation_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ function quadratic_spline_params(t::AbstractVector, sc::AbstractVector)
k[(end - 2):end] .= t[end]
k[4:(end - 3)] .= t[2:(end - 2)]

# Create and solve linear system Ac = u, where:
# Create linear system Ac = u, where:
# - A consists of basis function evaulations in t
# - c are the 1D control points
# - c are 1D control points
n = length(t)
dtype_sc = typeof(t[1] / t[1])

Expand Down

0 comments on commit e5bd8dc

Please sign in to comment.