Liking cljdoc? Tell your friends :D

criterium.viewer.common-charts.samples

Sample visualization functions for Vega-Lite charts.

Provides scatter plots, histograms, event markers, and sample difference visualizations for criterium benchmark data.

Sample visualization functions for Vega-Lite charts.

Provides scatter plots, histograms, event markers, and sample difference
visualizations for criterium benchmark data.
raw docstring

event-layerclj

(event-layer events [_k metrics])

Build an event marker layer showing when events occurred during sampling.

Returns a vector containing the Vega-Lite layer spec, or nil if no events.

Build an event marker layer showing when events occurred during sampling.

Returns a vector containing the Vega-Lite layer spec, or nil if no events.
sourceraw docstring

event-occurrenceclj

(event-occurrence events metrics index)

Extract event occurrence data for a single sample index.

Returns nil if no events occurred, otherwise a map of metric keys to values.

Extract event occurrence data for a single sample index.

Returns nil if no events occurred, otherwise a map of metric keys to values.
sourceraw docstring

histogram-vega-specclj

(histogram-vega-spec data-map view chart-options)

Build a complete Vega-Lite spec for histogram visualization.

Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.

Build a complete Vega-Lite spec for histogram visualization.

Takes data-map, view options, and chart-options map containing :width and/or
:height for chart dimensions. Returns the Vega-Lite spec without
viewer-specific wrapping.
sourceraw docstring

metric-bootstrap-boxplot-layerclj

(metric-bootstrap-boxplot-layer transforms bootstrap-stats metric-config)

Build a boxplot-style layer showing median CI and spread percentiles.

Creates a rug-plot style annotation at the bottom of the histogram showing:

  • Box: median confidence interval bounds
  • Center line: median point estimate
  • Whiskers: 10th and 90th percentiles

Transforms are applied to bootstrap values via the source-id chain.

Returns a vector of Vega-Lite layer specs.

Build a boxplot-style layer showing median CI and spread percentiles.

Creates a rug-plot style annotation at the bottom of the histogram showing:
- Box: median confidence interval bounds
- Center line: median point estimate
- Whiskers: 10th and 90th percentiles

Transforms are applied to bootstrap values via the source-id chain.

Returns a vector of Vega-Lite layer specs.
sourceraw docstring

metric-computed-histo-layerclj

(metric-computed-histo-layer transforms histogram metric)

Build a histogram bar chart layer from pre-computed histogram data.

Returns a Vega-Lite layer spec for displaying histogram bins.

Build a histogram bar chart layer from pre-computed histogram data.

Returns a Vega-Lite layer spec for displaying histogram bins.
sourceraw docstring

metric-diff-layerclj

(metric-diff-layer samples metric)

Build a sample differences chart layer.

Shows sorted unique differences from minimum value. Returns a Vega-Lite layer spec.

Build a sample differences chart layer.

Shows sorted unique differences from minimum value.
Returns a Vega-Lite layer spec.
sourceraw docstring

metric-layerclj

(metric-layer metric->values transforms outliers metric)

Build a scatter plot layer showing samples with outlier coloring.

Returns a Vega-Lite layer spec.

Build a scatter plot layer showing samples with outlier coloring.

Returns a Vega-Lite layer spec.
sourceraw docstring

metric-percentile-layerclj

(metric-percentile-layer metric->values transforms metric)

Build a percentile distribution chart layer.

Uses a logarithmic scale on the x-axis to emphasize tail percentiles. Returns a Vega-Lite layer spec.

Build a percentile distribution chart layer.

Uses a logarithmic scale on the x-axis to emphasize tail percentiles.
Returns a Vega-Lite layer spec.
sourceraw docstring

metric-sample-stats-layerclj

(metric-sample-stats-layer transforms stats metric-config)

Build a normal distribution overlay layer for histogram charts.

Returns a vector of Vega-Lite layer specs showing the fitted normal distribution and mean line.

Build a normal distribution overlay layer for histogram charts.

Returns a vector of Vega-Lite layer specs showing the fitted normal
distribution and mean line.
sourceraw docstring

normal-pdf-pointsclj

(normal-pdf-points min-val max-val mean variance transforms)

Generate points for a normal probability density function curve.

Returns a vector of {:z value :p probability} maps.

Generate points for a normal probability density function curve.

Returns a vector of {:z value :p probability} maps.
sourceraw docstring

samples-vega-specclj

(samples-vega-spec data-map view chart-options)

Build a complete Vega-Lite spec for sample visualization.

Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions. Returns the Vega-Lite spec without viewer-specific wrapping.

Build a complete Vega-Lite spec for sample visualization.

Takes data-map, view options, and chart-options map containing :width and/or
:height for chart dimensions. Returns the Vega-Lite spec without
viewer-specific wrapping.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close