Skip to content

Commit dfa63c9

Browse files
docs initialized
1 parent bdecc77 commit dfa63c9

16 files changed

+1866
-27
lines changed

Manifest.toml

Lines changed: 1738 additions & 1 deletion
Large diffs are not rendered by default.

Project.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
name = "TimeSeriesUtils"
22
uuid = "20aa821e-5b1c-4f19-affd-90757a4fca77"
3-
authors = ["Mattias Villani"]
43
version = "1.0.0-DEV"
4+
authors = ["Mattias Villani"]
5+
6+
[deps]
7+
ARCHModels = "6d3278bc-c23a-5105-85e5-0d57d2bf684f"
8+
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
9+
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
10+
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
11+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
12+
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
13+
Polynomials = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
14+
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
515

616
[compat]
17+
ARCHModels = "2.6.1"
18+
Distributions = "0.25.122"
19+
FFTW = "1.10.0"
20+
LaTeXStrings = "1.4.0"
21+
LinearAlgebra = "1.12.0"
22+
Plots = "1.41.2"
23+
Polynomials = "4.1.0"
24+
RCall = "0.14.10"
725
julia = "1.12"
826

927
[extras]

docs/make.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
using Pkg
2+
3+
# Activate the docs environment in docs/Project.toml
4+
Pkg.activate(@__DIR__)
5+
Pkg.instantiate() # optional but good to keep
6+
7+
@show Base.active_project() # temporary debug, can be removed later
8+
19
using TimeSeriesUtils
210
using Documenter
311

@@ -14,6 +22,10 @@ makedocs(;
1422
),
1523
pages=[
1624
"Home" => "index.md",
25+
"ARIMA utilities" => "ARIMAUtils.md",
26+
"ARTFIMA utilities" => "ARTFIMAUtils.md",
27+
"Spectral utilities" => "SpectralUtils.md",
28+
"General utilities" => "GeneralUtils.md"
1729
],
1830
)
1931

docs/src/ARIMAUtils.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
```@docs
2+
ARMAacf
3+
arma_reparam
4+
inv_arma_reparam
5+
check_stationarity
6+
sarma_reparam
7+
Arima
8+
simARMA
9+
ℓARMA
10+
SpecDensARMA
11+
SpecDensSARMA
12+
SpecDensMultiSARMA
13+
```

docs/src/ARTFIMAUtils.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```@docs
2+
artfima
3+
artsim
4+
artfima_pred
5+
SpecDensARTFIMA
6+
```

docs/src/GeneralUtils.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```@docs
2+
ts
3+
stl
4+
mstl
5+
nainterpret!
6+
nainterpret
7+
```

docs/src/SpectralUtils.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```@docs
2+
spectrum
3+
pspectrum
4+
pgram
5+
pGramDistribution
6+
ℓwhittle
7+
simProcessSpectral
8+
```

docs/src/assets/logo.png

8.95 KB
Loading

docs/src/index.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
```@meta
2-
CurrentModule = TimeSeriesUtils
3-
```
1+
# TimeSeriesUtils.jl
42

5-
# TimeSeriesUtils
3+
## Purpose
64

7-
Documentation for [TimeSeriesUtils](https://github.com/mattiasvillani/TimeSeriesUtils.jl).
5+
The TimeSeriesUtils.jl package contains general functions and models for time series and spectral analysis.
86

9-
```@index
10-
```
7+
## Index
118

12-
```@autodocs
13-
Modules = [TimeSeriesUtils]
14-
```
9+
```@index
10+
```

src/GeneralUtils.jl

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ end
1919
R function that decompose a time series into seasonal, trend and irregular components using loess.
2020
2121
Examples:
22-
```jldoctest
22+
```julia-repl
23+
2324
julia> T = 10*12;
25+
2426
julia> x = 0.01*(1:T) .+ sin.((1:T)*(2pi/12)) .+ 0.2*randn(T)
27+
2528
julia> stl_object = stl(x, frequency = 12)
29+
2630
julia> stl_object
27-
julia> plot(x, label ="time series", c = "black", legend = :topright)
28-
julia> plot!(stl_object[:time_series][:,1], label = "seasonal", c = "red")
29-
julia> plot!(stl_object[:time_series][:,2], label = "trend", c = "blue")
30-
julia> plot!(stl_object[:time_series][:,3], label = "remainder", c = "green")
3131
```
3232
3333
"""
@@ -48,15 +48,14 @@ end
4848
R function that decompose a time series into seasonal, trend and irregular components using loess. Decompose a time series into seasonal, trend and remainder components. Allows for multiple seasonal components with different periods.
4949
5050
Examples:
51-
```jldoctest
51+
```julia-repl
5252
julia> T = 10*12;
53+
5354
julia> x = 0.01*(1:T) .+ sin.((1:T)*(2pi/12)) .+ sin.((1:T)*(2pi/365.25)) .+ 0.2*randn(T)
55+
5456
julia> mstl_object = mstl(x; seasonal_periods = [12,365.25])
57+
5558
julia> mstl_object
56-
julia> plot(x, label ="time series", c = "black", legend = :topright)
57-
julia> plot!(mstl_object[:time_series][:,1], label = "seasonal", c = "red")
58-
julia> plot!(mstl_object[:time_series][:,2], label = "trend", c = "blue")
59-
julia> plot!(mstl_object[:time_series][:,3], label = "remainder", c = "green")
6059
```
6160
6261
"""
@@ -79,7 +78,7 @@ R function that interpolates missing values in a time series inplace.
7978
See also [`nainterpret`](@ref) for an not in place version.
8079
8180
Examples:
82-
```jldoctest
81+
```julia-repl
8382
julia> nainterpret!([4, missing, 10])
8483
3-element Vector{Float64}:
8584
4.0
@@ -104,7 +103,7 @@ R function that interpolates missing values in a time series.
104103
See also [`nainterpret!`](@ref) for an inplace version.
105104
106105
Examples:
107-
```jldoctest
106+
```julia-repl
108107
julia> y = nainterpret([4, missing, 10])
109108
3-element Vector{Float64}:
110109
4.0

0 commit comments

Comments
 (0)