Skip to content

Commit c86d58e

Browse files
committed
Use DocumenterCitations.jl to manage references
1 parent 65e49ac commit c86d58e

File tree

9 files changed

+117
-12
lines changed

9 files changed

+117
-12
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
34
Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59"
45

56
[compat]

docs/make.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Documenter
2+
using DocumenterCitations
23
using Interpolations
34

45
DocMeta.setdocmeta!(
@@ -7,6 +8,12 @@ DocMeta.setdocmeta!(
78
:(using Interpolations),
89
recursive = true,
910
)
11+
12+
bib = CitationBibliography(
13+
joinpath(@__DIR__, "src", "refs.bib"),
14+
style = :authoryear,
15+
)
16+
1017
makedocs(
1118
sitename = "Interpolations.jl",
1219
modules = [Interpolations],
@@ -24,9 +31,11 @@ makedocs(
2431
"Library" => "api.md",
2532
"News and Changes" => "NEWS.md",
2633
"Other Interpolation Packages" => "other_packages.md",
34+
"Bilbiography" => "bibliography.md",
2735
],
2836
warnonly = false,
2937
doctest = true,
38+
plugins = [bib],
3039
)
3140

3241
deploydocs(

docs/src/api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ Modules = [Interpolations]
1212
Public = false
1313
Order = [:function, :type]
1414
```
15+
16+
## Bibliography
17+
```@bibliography
18+
Pages = ["api.md"]
19+
Canonical = false
20+
```

docs/src/bibliography.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Bibliography
2+
3+
```@bibliography
4+
```
5+
6+
```@bibliography
7+
*
8+
```

docs/src/control.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ There are a few different monotonic interpolation algorithms. Some guarantee tha
241241
* [`SteffenMonotonicInterpolation`](@ref) -- it does not overshoot.
242242

243243
You can read about monotonic interpolation in the following sources:
244+
```@bibliography
245+
Pages = []
246+
Canonical = false
244247
245-
* Fritsch & Carlson (1980), "Monotone Piecewise Cubic Interpolation", doi:10.1137/0717021.
246-
* Fritsch & Butland (1984), "A Method for Constructing Local Monotone Piecewise Cubic Interpolants", doi:10.1137/0905021.
247-
* Steffen (1990), "A Simple Method for Monotonic Interpolation in One Dimension", [URL](http://adsabs.harvard.edu/abs/1990A%26A...239..443S)
248+
Fritsch1980
249+
Fritsch1984
250+
Steffen1990
251+
```

docs/src/devdocs.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,9 @@ Also, all GPU-compatable `AbstractInterpolation`s should define their own
239239
broadcast mechanism by overloading the default `BroadcastStyle`. See
240240
[Customizing broadcasting](https://docs.julialang.org/en/v1/manual/interfaces/#man-interfaces-broadcasting)
241241
for more details.
242+
243+
244+
```@bibliography
245+
Pages = ["devdocs.md"]
246+
Canonical = false
247+
```

docs/src/refs.bib

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
@article{Thévenaz2000,
2+
author = {Th\'evenaz, P. and Blu, T. and Unser, M.},
3+
journal = {IEEE Transactions on Medical Imaging},
4+
title = {Interpolation revisited},
5+
year = {2000},
6+
volume = {19},
7+
number = {7},
8+
pages = {739-758},
9+
doi = {10.1109/42.875199}
10+
}
11+
12+
@article{Fritsch1980,
13+
author = {Fritsch, F. N. and Carlson, R. E.},
14+
title = {Monotone Piecewise Cubic Interpolation},
15+
journal = {SIAM Journal on Numerical Analysis},
16+
volume = {17},
17+
number = {2},
18+
pages = {238-246},
19+
year = {1980},
20+
doi = {10.1137/0717021},
21+
}
22+
23+
@article{Fritsch1984,
24+
author = {Fritsch, F. N. and Butland, J.},
25+
title = {A Method for Constructing Local Monotone Piecewise Cubic Interpolants},
26+
journal = {SIAM Journal on Scientific and Statistical Computing},
27+
volume = {5},
28+
number = {2},
29+
pages = {300-304},
30+
year = {1984},
31+
doi = {10.1137/0905021},
32+
}
33+
34+
@article{Steffen1990,
35+
author = {{Steffen}, M.},
36+
title = "{A Simple Method for Monotonic Interpolation in One Dimension}",
37+
journal = {Astronomy and Astrophysics},
38+
year = {1990},
39+
volume = {239},
40+
pages = {443-450},
41+
url = {https://adsabs.harvard.edu/abs/1990A%26A...239..443S},
42+
}
43+
44+
@article{Eilers1996,
45+
author = {Paul H. C. Eilers and Brian D. Marx},
46+
title = {Flexible smoothing with B-splines and penalties},
47+
volume = {11},
48+
journal = {Statistical Science},
49+
number = {2},
50+
publisher = {Institute of Mathematical Statistics},
51+
pages = {89 -- 121},
52+
year = {1996},
53+
doi = {10.1214/ss/1038425655},
54+
url = {https://projecteuclid.org/euclid.ss/1038425655},
55+
}
56+
57+
@article{Akima1970,
58+
author = {Akima, Hiroshi},
59+
title = {A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures},
60+
year = {1970},
61+
publisher = {Association for Computing Machinery},
62+
address = {New York, NY, USA},
63+
volume = {17},
64+
number = {4},
65+
issn = {0004-5411},
66+
doi = {10.1145/321607.321609},
67+
journal = {J. ACM},
68+
pages = {589--602},
69+
numpages = {14},
70+
}

src/b-splines/b-splines.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ a polynomial of order `k-1`. A value of 2 is the most common.
213213
214214
`λ` is non-negative. If its value is zero, it falls back to non-regularized interpolation.
215215
216-
[1] https://projecteuclid.org/euclid.ss/1038425655.
216+
# References
217+
- [Eilers and Marx, 1996, Statist. Sci. 11(2), 1996](@cite Eilers1996)
217218
"""
218219
function interpolate(A::AbstractArray, it::IT, λ::Real, k::Int) where {IT<:DimSpec{BSpline}}
219220
interpolate(tweight(A), tcoef(A), A, it, λ, k)

src/monotonic/monotonic.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ end
7171
"""
7272
AkimaMonotonicInterpolation
7373
74-
Monotonic interpolation based on Akima (1970),
74+
Monotonic interpolation based on [Akima (1970)
7575
"A New Method of Interpolation and Smooth Curve Fitting Based on Local Procedures",
76-
doi:10.1145/321607.321609.
76+
doi:10.1145/321607.321609](@cite Akima1970).
7777
7878
Tangents are determined at each given point locally,
7979
results are close to manual drawn curves
@@ -84,8 +84,8 @@ end
8484
"""
8585
FritschCarlsonMonotonicInterpolation
8686
87-
Monotonic interpolation based on Fritsch & Carlson (1980),
88-
"Monotone Piecewise Cubic Interpolation", doi:10.1137/0717021.
87+
Monotonic interpolation based on [Fritsch & Carlson (1980),
88+
"Monotone Piecewise Cubic Interpolation", doi:10.1137/0717021](@cite Fritsch1980).
8989
9090
Tangents are first initialized, then adjusted if they are not monotonic
9191
can overshoot for non-monotonic data
@@ -96,9 +96,9 @@ end
9696
"""
9797
FritschButlandMonotonicInterpolation
9898
99-
Monotonic interpolation based on Fritsch & Butland (1984),
99+
Monotonic interpolation based on [Fritsch & Butland (1984),
100100
"A Method for Constructing Local Monotone Piecewise Cubic Interpolants",
101-
doi:10.1137/0905021.
101+
doi:10.1137/0905021](@cite Fritsch1984).
102102
103103
Faster than FritschCarlsonMonotonicInterpolation (only requires one pass)
104104
but somewhat higher apparent "tension".
@@ -109,9 +109,9 @@ end
109109
"""
110110
SteffenMonotonicInterpolation
111111
112-
Monotonic interpolation based on Steffen (1990),
112+
Monotonic interpolation based on [Steffen (1990),
113113
"A Simple Method for Monotonic Interpolation in One Dimension",
114-
http://adsabs.harvard.edu/abs/1990A%26A...239..443S
114+
http://adsabs.harvard.edu/abs/1990A%26A...239..443S](@cite Steffen1990)
115115
116116
Only one pass, results usually between FritschCarlson and FritschButland.
117117
"""

0 commit comments

Comments
 (0)