Skip to content

Commit 3754f65

Browse files
committed
Docs: minor improvements to example
1 parent 16f2960 commit 3754f65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/interpolation.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ current_figure() # hide
9292
# to fit noisy data.
9393
# A smoothing spline is a curve which passes close to the input data, while avoiding strong
9494
# fluctuations due to possible noise.
95-
# The smoothign strength is controlled by a regularisation parameter ``λ``.
95+
# The smoothing strength is controlled by a regularisation parameter ``λ``.
9696
# Setting ``λ = 0`` corresponds to a regular interpolation (the obtained spline passes
9797
# through all the points), while increasing ``λ`` leads to a smoother curve which roughly
9898
# approximates the data.
@@ -200,9 +200,9 @@ ys = @. f_slow(xs) + f_fast(xs);
200200
L = 2
201201
S_interp = interpolate(xs, copy(ys), BSplineOrder(4), Periodic(L))
202202

203-
# Create a periodic cubic smoothing spline. Note that `BSplineOrder(4)` is assumed (it's
204-
# currently the only supported choice). We also compare with a smoothing spline which
205-
# doesn't assume periodic boundary conditions.
203+
# Create a periodic [cubic smoothing spline](@ref smoothing-example). Note that
204+
# `BSplineOrder(4)` is assumed (it's currently the only supported choice). We also compare
205+
# with a smoothing spline which doesn't assume periodic boundary conditions.
206206

207207
λ = 0.001 # smoothing parameter
208208
S_fit_natural = fit([xs; xs[begin] + L], [ys; ys[begin]], λ) # for comparison, compute a natural spline (no implied periodicity)

0 commit comments

Comments
 (0)