Skip to content

Commit

Permalink
Merge pull request #1323 from quantified-uncertainty/doc-fixes
Browse files Browse the repository at this point in the history
Documentation fixes
  • Loading branch information
OAGr authored Oct 25, 2022
2 parents 32f762e + b062dd9 commit 947c28d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/website/docs/Guides/DistributionCreation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ If both values are above zero, a `lognormal` distribution is used. If not, a `no

`mixture(...distributions: Distribution[], weights?: number[])`
`mx(...distributions: Distribution[], weights?: number[])`
`mixture(distributions: Distributions[], weights?: number[])`
`mx(distributions: Distributions[], weights?: number[])`
`mixture(distributions: Distribution[], weights?: number[])`
`mx(distributions: Distribution[], weights?: number[])`

The `mixture` mixes combines multiple distributions to create a mixture. You can optionally pass in a list of proportional weights.

Expand Down
10 changes: 5 additions & 5 deletions packages/website/docs/Guides/Functions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ dist1 + dist2`}

### Subtraction

A horizontal left shift. A horizontal right shift. The substraction operation represents
the distribution of the value of one random sample chosen from the first distribution minus
the value of one random sample chosen from the second distribution.
A horizontal left shift. The subtraction operation represents the distribution of the value of
one random sample chosen from the first distribution minus the value of one random sample chosen
from the second distribution.

<SquiggleEditor
defaultCode={`dist1 = 1 to 10
Expand All @@ -35,7 +35,7 @@ dist1 - dist2`}

### Multiplication

A proportional scaling. The addition operation represents the distribution of the multiplication of
A proportional scaling. The multiplication operation represents the distribution of the multiplication of
the value of one random sample chosen from the first distribution times the value one random sample
chosen from the second distribution.

Expand All @@ -52,7 +52,7 @@ We also provide concatenation of two distributions as a syntax sugar for `*`
### Division

A proportional scaling (normally a shrinking if the second distribution has values higher than 1).
The addition operation represents the distribution of the division of
The division operation represents the distribution of the division of
the value of one random sample chosen from the first distribution over the value one random sample
chosen from the second distribution. If the second distribution has some values near zero, it
tends to be particularly unstable.
Expand Down

0 comments on commit 947c28d

Please sign in to comment.