Skip to content

Commit 2c383dd

Browse files
spaettemkitti
authored andcommitted
typos
1 parent e3499a7 commit 2c383dd

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

doc/Interpolations.jl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"source": [
9797
"You'll notice that when creating the quadratic interpolation, we had to give another input parameter to the interpolation type: the `Line(OnCell())` argument which specifies the boundary condition. The first term (`Line`) specifies the behavior of the boundary condition, the second (`OnCell`) specifies where it applies. In this case `yitp_quadratic` will become linear for `x < 0.5` or `x > 10.5`. The alternative, `OnGrid`, would apply the boundary condition for `x < 1` or `x > 10`.\n",
9898
"\n",
99-
"All interpolations of quadratic degree or higher require a prefiltering step, which entails solving a tridiagonal system of equations (details can be found for example in [this paper](http://dx.doi.org/10.1109/42.875199)), in order to make the interpolating function pass through the data points. `Interpolations.jl` takes care of solving this system for you, but in order to close the system a boundary condition is requred."
99+
"All interpolations of quadratic degree or higher require a prefiltering step, which entails solving a tridiagonal system of equations (details can be found for example in [this paper](http://dx.doi.org/10.1109/42.875199)), in order to make the interpolating function pass through the data points. `Interpolations.jl` takes care of solving this system for you, but in order to close the system a boundary condition is required."
100100
]
101101
},
102102
{

doc/Interpolations_algebra.nb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ that\n\np(1) = 0\np(0) = q(1)\np\[CloseCurlyQuote](1) = 0\n\
153153
p\[CloseCurlyQuote](0) = q\[CloseCurlyQuote](1)\nq\[CloseCurlyQuote](0) = 0\n\
154154
p\[CloseCurlyQuote]\[CloseCurlyQuote](1) = 0\np\[CloseCurlyQuote]\
155155
\[CloseCurlyQuote](0) = q\[CloseCurlyQuote]\[CloseCurlyQuote](1)\n\nThese \
156-
conditions are satisifed by the following cubic polynomials (TODO: show \
156+
conditions are satisfied by the following cubic polynomials (TODO: show \
157157
derivation somehow -- I just took it from Tim\[CloseCurlyQuote]s notes):"
158158
}], "Text",
159159
CellChangeTimes->{{3.656419693589711*^9, 3.6564199581451*^9}, {
@@ -362,7 +362,7 @@ Cell[BoxData[{
362362
"]"}], "/.", "params"}]}], "\[IndentingNewLine]",
363363
RowBox[{"(*", " ",
364364
RowBox[{
365-
"To", " ", "analyzy", " ", "bounary", " ", "conditions", " ", "we", " ",
365+
"To", " ", "analyze", " ", "boundary", " ", "conditions", " ", "we", " ",
366366
"also", " ", "want", " ", "first", " ", "and", " ", "second", " ",
367367
"derivatives", " ", "of", " ", "y"}], " ",
368368
"*)"}]}], "\[IndentingNewLine]",

doc/Math.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ abstract Interpolation{IT<:InterpolationType,EB<:ExtrapolationBehavior}
5757

5858
1. For this reason, linear B-splines are often referred to as *2nd order*, which may be a source of confusion since the interpolating function itself is linear, i.e. of first order. In `Interpolations.jl`, we will try to avoid this confusion by referring to interpolation degree by "linear", "quadratic" etc.
5959

60-
2. Although the separation of concepts 1-3 from extrapolation behavior is computationally sound, it does allow for some interesting, yet probably nonsensical, combinations of interpolation degrees, boundary conditions and extrapolation behavior. One could imagine for example a constant interpolation (which needs no boundary condition) with linear extrapolation, in which case the interpolating function is a sequence of "steps" with 0-derivative inside the domain, while suddenly having a nonzero derivative outside. Similarly, in most cases where the extrapolation behavior is defined as constant or reflecting, it will make sense to specify matching boundary conditions, but other combinations are entirely supported by `Interpolations.jl`; your milage may vary, very much...
60+
2. Although the separation of concepts 1-3 from extrapolation behavior is computationally sound, it does allow for some interesting, yet probably nonsensical, combinations of interpolation degrees, boundary conditions and extrapolation behavior. One could imagine for example a constant interpolation (which needs no boundary condition) with linear extrapolation, in which case the interpolating function is a sequence of "steps" with 0-derivative inside the domain, while suddenly having a nonzero derivative outside. Similarly, in most cases where the extrapolation behavior is defined as constant or reflecting, it will make sense to specify matching boundary conditions, but other combinations are entirely supported by `Interpolations.jl`; your mileage may vary, very much...
6161

6262
</sup>

src/b-splines/indexing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function weightedindexes(parts::Vararg{Union{Int,GradParts},N}) where N
9898
# gwik are gradient-coefficient WeightedIndexes along dimension k
9999
# i2 is the integer index along dimension 2
100100
# These will result in a 2-vector gradient.
101-
# TODO: check whether this is inferrable
101+
# TODO: check whether this is inferable
102102
slot_substitute(parts, map(positions, parts), map(valuecoefs, parts), map(gradcoefs, parts))
103103
end
104104

@@ -127,7 +127,7 @@ end
127127
# Substitute the dth dimension's gradient coefs for the remaining coefs, column by column
128128
slot_substitute(kind::Tuple, p, v, g, h) = (_column(kind, kind, p, v, g, h)..., slot_substitute(Base.tail(kind), p, v, g, h)...)
129129
slot_substitute(::Tuple{}, p, v, g, h) = ()
130-
# inner: calulate a single column
130+
# inner: calculate a single column
131131
function _column(kind1::K, kind2::K, p, v, g, h) where {K<:Tuple}
132132
ss = substitute_ruled(v, kind1, h)
133133
(map(maybe_weightedindex, p, ss), _column(Base.tail(kind1), kind2, p, v, g, h)...)

src/convenience-constructors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# convenience copnstructors for constant / linear / cubic spline interpolations
1+
# convenience constructors for constant / linear / cubic spline interpolations
22
# 1D version
33
constant_interpolation(range::AbstractRange, vs::AbstractVector; extrapolation_bc = Throw()) =
44
extrapolate(scale(interpolate(vs, BSpline(Constant())), range), extrapolation_bc)

src/gpu_support.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ end
5959
"""
6060
Interpolations.root_storage_type(::Type{<:AbstractInterpolation}) -> Type{<:AbstractArray}
6161
62-
This function returns the type of the root cofficients array of an `AbstractInterpolation`.
62+
This function returns the type of the root coefficients array of an `AbstractInterpolation`.
6363
Some array wrappers, like `OffsetArray`, should be skipped.
6464
"""
6565
root_storage_type(::Type{T}) where {T<:AbstractInterpolation} = Array{eltype(T),ndims(T)} # fallback to `Array` by default.

src/iterate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function checkbounds(::Type{Bool}, iter::KnotIterator{T,ET}, idx::Int) where {T,
182182
end
183183

184184
# Returns the knot given by idx, or raise a BoundsError
185-
# Despatches to getknotindex(ET, iter, idx) if idx is an extrapolated knot,
185+
# Dispatches to getknotindex(ET, iter, idx) if idx is an extrapolated knot,
186186
# where ET is the boundary conditions for the relevant side
187187
function getindex(iter::KnotIterator{T, ET}, idx::Int) where {T, ET <: ExtrapDimSpec}
188188
# Get Left/Right Extrapolation Boundary Conditions for the KnotIterator

src/monotonic/monotonic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Monotonic interpolation based on Akima (1970),
7575
"A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures",
7676
doi:10.1145/321607.321609.
7777
78-
Tagents are dertermined at each given point locally,
78+
Tangents are determined at each given point locally,
7979
results are close to manual drawn curves
8080
"""
8181
struct AkimaMonotonicInterpolation <: MonotonicInterpolationType

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ check1(args) = _check1(true, args...)
2828
@inline _check1(tf, a, args...) = _check1(tf & (a == 1), args...)
2929
_check1(tf) = tf
3030

31-
# These are not inferrable for mixed-type tuples, so when that's important use `getfirst`
31+
# These are not inferable for mixed-type tuples, so when that's important use `getfirst`
3232
# and `getrest` instead.
3333
iextract(f::Flag, d) = f
3434
iextract(t::Tuple, d) = t[d]

0 commit comments

Comments
 (0)