Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alejandro Icazatti <ale.icazatti@gmail.com>
  • Loading branch information
aloctavodia and aleicazatti authored Mar 10, 2023
1 parent e70551e commit 39534e2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions preliz/distributions/continuous_multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ def plot_pdf(
):
"""
Plot the pdf of the marginals or the joint pdf of the simplex.
The joint representation is only available for a dirichlet with a alpha of length 3.
The joint representation is only available for a dirichlet with an alpha of length 3.
Parameters
----------
marginals : True
Defaults to True, plor the marginal distributions, if False plot the joint distribution
Defaults to True, plot the marginal distributions, if False plot the joint distribution
(only valid for an alpha of length 3).
pointinterval : bool
Whether to include a plot of the quantiles. Defaults to False. If True the default is to
plot the median and two interquantiles ranges.
plot the median and two interquantile ranges.
interval : str
Type of interval. Available options are highest density interval `"hdi"` (default),
equal tailed interval `"eti"` or intervals defined by arbitrary `"quantiles"`.
Expand All @@ -117,7 +117,7 @@ def plot_pdf(
If ``full`` use the finite end-points to set the limits of the plot. For unbounded
end-points or if ``restricted`` use the 0.001 and 0.999 quantiles to set the limits.
figsize : tuple
Size of the
Size of the figure
ax : matplotlib axis
Axis to plot on
Expand Down Expand Up @@ -145,7 +145,7 @@ def plot_cdf(
----------
pointinterval : bool
Whether to include a plot of the quantiles. Defaults to False. If True the default is to
plot the median and two interquantiles ranges.
plot the median and two interquantile ranges.
interval : str
Type of interval. Available options are highest density interval `"hdi"` (default),
equal tailed interval `"eti"` or intervals defined by arbitrary `"quantiles"`.
Expand Down Expand Up @@ -236,9 +236,9 @@ class MvNormal(Continuous):
Parameters
----------
mu : tensor_like of float
mu : array of floats
Vector of means.
cov : tensor_like of float, optional
cov : array of floats, optional
Covariance matrix.
"""

Expand Down Expand Up @@ -285,13 +285,13 @@ def plot_pdf(
ax=None,
):
"""
Plot the pdf of the marginals or the joint pdf
Plot the pdf of the marginals or the joint pdf
The joint representation is only available for a 2D Multivariate Normal.
Parameters
----------
marginals : True
Defaults to True, plor the marginal distributions, if False plot the joint distribution
Defaults to True, plot the marginal distributions, if False plot the joint distribution
(only valid for a bivariate normal).
pointinterval : bool
Whether to include a plot of the quantiles. Defaults to False. If True the default is to
Expand Down

0 comments on commit 39534e2

Please sign in to comment.