Skip to content

Commit 276479d

Browse files
committed
Document that ucv and bcv are acceptable values for bw
1 parent 2ea80f1 commit 276479d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arviz/plots/kdeplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def plot_kde(
5858
bw : float or str, optional
5959
If numeric, indicates the bandwidth and must be positive.
6060
If str, indicates the method to estimate the bandwidth and must be
61-
one of "scott", "silverman", "isj" or "experimental" when ``is_circular`` is False
62-
and "taylor" (for now) when ``is_circular`` is True.
61+
one of "scott", "silverman", "isj", "experimental", "ucv", or "bcv" when ``is_circular`` is
62+
False and "taylor" (for now) when ``is_circular`` is True.
6363
Defaults to "default" which means "experimental" when variable is not circular
6464
and "taylor" when it is.
6565
adaptive : bool, default False

arviz/stats/density_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def _kde_linear(
632632
bw: int, float or str, optional
633633
If numeric, indicates the bandwidth and must be positive.
634634
If str, indicates the method to estimate the bandwidth and must be one of "scott",
635-
"silverman", "isj" or "experimental". Defaults to "experimental".
635+
"silverman", "isj", "experimental", "ucv", or "bcv". Defaults to "experimental".
636636
adaptive: boolean, optional
637637
Indicates if the bandwidth is adaptive or not.
638638
It is the recommended approach when there are multiple modes with different spread.

0 commit comments

Comments
 (0)