Skip to content

Commit 91cbb95

Browse files
authored
Merge pull request #31 from bgctw/spellcheck
Spellcheck
2 parents 09c52ee + cc665a5 commit 91cbb95

File tree

9 files changed

+30
-10
lines changed

9 files changed

+30
-10
lines changed

.github/workflows/.typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default.extend-words]
2+
Missings = "Missings"
3+
devide = "divide"
4+
exluding = "excluding"
5+
6+

.github/workflows/SpellCheck.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v4
12+
- name: Check spelling
13+
uses: crate-ci/typos@master
14+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ to
1919

2020
This can also be used to approximate one distribution via a different distribution by matching its moments.
2121

22-
User needs to [explicitly using Optim.jl](https://bgctw.github.io/DistributionFits.jl/stable/set_optimize/) for DitributionFits.jl to work properly:
22+
User needs to [explicitly using Optim.jl](https://bgctw.github.io/DistributionFits.jl/stable/set_optimize/) for DistributionFits.jl to work properly:
2323
```julia
2424
using DistributionFits, Optim
2525
```

docs/src/logitnormal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ However, user might have an idea of the spread, or the inverse: peakedness,
2929
of the distribution.
3030

3131
With increasing spread, the logitnormal distribution becomes bimodal.
32-
The following functiion estimates the most spread, i.e most
32+
The following function estimates the most spread, i.e most
3333
flat distribution that has a single mode at the given location.
3434

3535
```@docs
3636
fit_mode_flat
3737
```
3838

39-
The found maximum spread parameter, σ, is devided by the peakedness
39+
The found maximum spread parameter, σ, is divided by the peakedness
4040
argument to specify distributions given the mode that are more
4141
peaked.
4242

docs/src/partype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ partype(d) == Float32
1818
true
1919
```
2020

21-
## Infering the parametric type from other arguments.
21+
## Inferring the parametric type from other arguments.
2222

2323
If the parametric type is omitted, default Float64 is assumed, or inferred from
2424
other parameters of the fitting function.

jmd/fitModeFlat.jmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $$
5656
\end{aligned}
5757
$$
5858

59-
Analytically solving for $x_t$ is complicated by $x_t$ occuring outside and
59+
Analytically solving for $x_t$ is complicated by $x_t$ occurring outside and
6060
inside the logit function. However, we can use
6161
the constraint to determine $x_t$ by numerical optimization, minimizing the
6262
difference between the right and the left hand side.

src/fitstats.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Base.eltype(::Moments{N, T}) where {N, T} = T
7070
7171
Get the first N moments of a distribution.
7272
73-
Procudes an object of type [`AbstractMoments`](@ref).
73+
Produces an object of type [`AbstractMoments`](@ref).
7474
7575
## Examples
7676
```julia

src/univariate/continuous/estimateMoments.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function meanFunOfProb(d::ContinuousUnivariateDistribution;
3030
#---|---|---|---#
3131
# |---|---|---| #
3232
# we need to add points for δ/4 and 1-δ/4 representing the edges
33-
# but their weight is only half, because they represents half an inverval
33+
# but their weight is only half, because they represents half an interval
3434
#m = sum(c_i*δ) + el*(δ/2) + er*(δ/2) = (sum(c_i) + er/2 + el/2)*δ
3535
s = sum(fun.(d, p)) # sum at points c_i
3636
el = fun(d, δ / 4) #

src/univariate/continuous/logitnormal.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function matchModeUpper(mode::T, qp::QuantilePoint, ::Val{nTry}) where {nTry, T
6060
oF(mu) = ofLogitNormalModeUpper(mu, mode, logitMode, logitUpper, perc)
6161
ofMuTry = oF.(muTry)
6262
iMin = argmin(ofMuTry)
63-
# on postive side muTry are increasing, on negative side muTry decreasing
64-
# neet to have the lower value at the beginning of the interval
63+
# on positive side muTry are increasing, on negative side muTry decreasing
64+
# need to have the lower value at the beginning of the interval
6565
interval = (logitMode >= 0) ?
6666
(muTry[max(1, iMin - 1)], muTry[min(nTry, iMin + 1)]) :
6767
(muTry[max(1, iMin + 1)], muTry[min(nTry, max(1, iMin - 1))])
@@ -96,7 +96,7 @@ end
9696
9797
Find the maximum-spread logitnormal distribution that has a single mode at given location.
9898
99-
More peaked distributions with given single mode can be optained by increasing
99+
More peaked distributions with given single mode can be obtained by increasing
100100
argument peakedness. They will have a spread by originally inferred σ² devidied
101101
by peakedness.
102102

0 commit comments

Comments
 (0)