Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
DistributionFits = "45214091-1ed4-4409-9bcf-fdb48a05e921"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
Expand Down
3 changes: 2 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ DocMeta.setdocmeta!(DistributionFits, :DocTestSetup, :(using DistributionFits);
makedocs(;
modules=[DistributionFits],
authors="Thomas Wutzler <twutz@bgc-jena.mpg.de> and contributors",
repo="https://github.com/bgctw/DistributionFits.jl/blob/{commit}{path}#{line}",
#repo="https://github.com/bgctw/DistributionFits.jl/blob/{commit}{path}#{line}",
repo = Remotes.GitHub("bgctw", "DistributionFits.jl"),
sitename="DistributionFits.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
Expand Down
10 changes: 5 additions & 5 deletions src/fitstats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ The following functions are supported
- `n_moments(m)`: get the number of recorded moments

The following getters return a single moment or
throw an error if the moment has not been recorded
- `mean(m)`: get the mean
- `var(m)`: get the variance
- `skewness(m)`: get the variance
- `kurtosis(m)`: get the variance
throw an error if the moment has not been recorded (`>N`)
- `mean(m)`: get the first momemnt, i.e. the mean
- `var(m)`: get the second moment, i.e. the variance
- `skewness(m)`: get the third moment, i.e. the skewness
- `kurtosis(m)`: get the fourth moment, i.e. the kurtosis
- `getindex(m,i)`: get the ith moment, i.e. indexing m[i]

The basic implementation `Moments` is immutable and
Expand Down