Skip to content

Commit

Permalink
indicators.qmd Diversity quote vegan; Contribute wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Nov 21, 2023
1 parent dba7e45 commit 7eb612b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ We very much welcome your feedback, contributions and collaboration. Here are a

2. Submit a [New Issue](https://github.com/marinebon/MarineSDMs/issues/new/choose) on Github.

3. Click on the "Edit this Page" in the upper right. If you have a Github account, then you can fork this repository from owner "marinebon" to your username, edit the page(s) and submit a pull request.
3. Click on the <i class="bi bi-github"></i> "Edit this Page" in the upper right. If you have a Github account, then you can fork this repository from owner "marinebon" to your username, edit the page(s) and submit a pull request.

4. If you are a regular contributor, you can be added to the collaborators of this repository to make push changes directly (without needing a pull request).
4. If you are a regular contributor, you can be added to the collaborators of this repository to push changes directly (without needing a pull request).
16 changes: 9 additions & 7 deletions indicators.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ title: "Indicators"

Here are the classic diversity indices from the R package `vegan`:

$$
\begin{aligned}
H &= - \sum_{i=1}^S p_i \log_b p_i &\text{Shannon-Weaver} \\
D_1 &= 1 - \sum_{i=1}^S p_i^2 &\text{Simpson} \\
D_2 &= \frac{1}{\sum_{i=1}^S p_i^2} &\text{inverse Simpson}
\end{aligned}
$$
> $$
> \begin{aligned}
> H &= - \sum_{i=1}^S p_i \log_b p_i &\text{Shannon-Weaver} \\
> D_1 &= 1 - \sum_{i=1}^S p_i^2 &\text{Simpson} \\
> D_2 &= \frac{1}{\sum_{i=1}^S p_i^2} &\text{inverse Simpson}
> \end{aligned}
> $$
>
> where $p_i$ is the proportion of species $i$, and $S$ is the number of species so that $\sum_{i=1}^S p_i = 1$, and $b$ is the base of the logarithm.
## Endemism

Expand Down

0 comments on commit 7eb612b

Please sign in to comment.