plot_metric_kde()

Plot KDE curve by category (C1-C4).

Usage

Source

plot_metric_kde(
    metric,
    registry,
    size=10000,
)

Sample from the fitted distribution stored in the registry for the given metric. Will split by conveyance status if nested.

Parameters

metric: str

Name of metric to plot.

registry: simtools.distributions.DistributionRegistry

Registry instance set-up using the distribution config.

size: int = 10000
Number of samples to draw from each category’s distribution.