Skip to content

Commit

Permalink
Document that ucv and bcv are acceptable values for bw
Browse files Browse the repository at this point in the history
  • Loading branch information
sethaxen committed Sep 19, 2024
1 parent 2ea80f1 commit 276479d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arviz/plots/kdeplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def plot_kde(
bw : float or str, optional
If numeric, indicates the bandwidth and must be positive.
If str, indicates the method to estimate the bandwidth and must be
one of "scott", "silverman", "isj" or "experimental" when ``is_circular`` is False
and "taylor" (for now) when ``is_circular`` is True.
one of "scott", "silverman", "isj", "experimental", "ucv", or "bcv" when ``is_circular`` is
False and "taylor" (for now) when ``is_circular`` is True.
Defaults to "default" which means "experimental" when variable is not circular
and "taylor" when it is.
adaptive : bool, default False
Expand Down
2 changes: 1 addition & 1 deletion arviz/stats/density_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def _kde_linear(
bw: int, float or str, optional
If numeric, indicates the bandwidth and must be positive.
If str, indicates the method to estimate the bandwidth and must be one of "scott",
"silverman", "isj" or "experimental". Defaults to "experimental".
"silverman", "isj", "experimental", "ucv", or "bcv". Defaults to "experimental".
adaptive: boolean, optional
Indicates if the bandwidth is adaptive or not.
It is the recommended approach when there are multiple modes with different spread.
Expand Down

0 comments on commit 276479d

Please sign in to comment.