Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.analysis.analyzer.get_central_tendency_and_ci
Stay organized with collections
Save and categorize content based on your preferences.
Calculates mean and credible intervals for the given data.
meridian.analysis.analyzer.get_central_tendency_and_ci(
data: (np.ndarray | meridian.backend.Tensor
),
confidence_level: float = constants.DEFAULT_CONFIDENCE_LEVEL,
axis: tuple[int, ...] = (0, 1),
include_median=False
) -> np.ndarray
Args |
data
|
Data for the metric.
|
confidence_level
|
Confidence level for computing credible intervals,
represented as a value between zero and one.
|
axis
|
Axis or axes along which the mean, median, and quantiles are computed.
|
include_median
|
A boolean flag indicating whether to calculate and include
the median in the output Dataset (default: False).
|
Returns |
A numpy array or backend.Tensor containing the mean and credible intervals
for the given data. Optionally, it also includes the median.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[null,null,["Last updated 2025-09-05 UTC."],[],[],null,[]]