Skip to content

Commit

Permalink
Merge pull request #2527 from grahamgower/maths-markup
Browse files Browse the repository at this point in the history
fix some :math: in the docs
  • Loading branch information
benjeffery authored Oct 3, 2022
2 parents c4af13e + 6657aa1 commit 1919abe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -7789,7 +7789,7 @@ def trait_correlation(self, W, windows=None, mode="site", span_normalise=True):
This is computed as the
:meth:`trait_covariance <.TreeSequence.trait_covariance>`
divided by the variance of the relevant column of W
and by ;math:`p * (1 - p)`, where :math:`p` is the allele frequency.
and by :math:`p * (1 - p)`, where :math:`p` is the allele frequency.
"branch"
The sum of squared correlations between the split induced by each branch and
Expand Down Expand Up @@ -7882,15 +7882,15 @@ def trait_linear_model(
over each cancels the factor of two.)
"branch"
The squared coefficient `b_1^2`, computed for the split induced by each
The squared coefficient :math:`b_1^2`, computed for the split induced by each
branch (i.e., with :math:`g` indicating inheritance from that branch),
multiplied by branch length and tree span, summed over all trees
in the window, and divided by the length of the window if
``span_normalise=True``.
"node"
For each node, the squared coefficient `b_1^2`, computed for the property of
inheriting from this node, as in "branch".
For each node, the squared coefficient :math:`b_1^2`, computed for
the property of inheriting from this node, as in "branch".
:param numpy.ndarray W: An array of values with one row for each sample and one
column for each "phenotype".
Expand Down

0 comments on commit 1919abe

Please sign in to comment.