Liking cljdoc? Tell your friends :D

criterium.viewer.common-charts.quantile

Q-Q plot visualization functions for Vega-Lite charts.

Provides Q-Q (quantile-quantile) plot generation for comparing sample distributions against fitted theoretical distributions. Q-Q plots show sample quantiles vs theoretical quantiles - points lying on the y=x diagonal indicate good fit.

Q-Q plot visualization functions for Vega-Lite charts.

Provides Q-Q (quantile-quantile) plot generation for comparing sample
distributions against fitted theoretical distributions. Q-Q plots show
sample quantiles vs theoretical quantiles - points lying on the y=x
diagonal indicate good fit.
raw docstring

distribution-qq-layerclj

(distribution-qq-layer dist fit-result samples transforms)

Build a Q-Q scatter layer for a single fitted distribution.

Takes the distribution keyword, fit result, samples, and transforms. Returns a Vega-Lite layer spec or nil if the distribution couldn't be fitted.

Build a Q-Q scatter layer for a single fitted distribution.

Takes the distribution keyword, fit result, samples, and transforms.
Returns a Vega-Lite layer spec or nil if the distribution couldn't be fitted.
sourceraw docstring

distribution-qq-overlay-layersclj

(distribution-qq-overlay-layers fit-data samples transforms)

Build Q-Q overlay layers for all fitted distributions.

Takes distribution-fit data for a metric, samples, and transforms. Returns a vector of Vega-Lite layer specs for successfully fitted distributions.

Build Q-Q overlay layers for all fitted distributions.

Takes distribution-fit data for a metric, samples, and transforms.
Returns a vector of Vega-Lite layer specs for successfully fitted
distributions.
sourceraw docstring

distribution-qq-vega-specclj

(distribution-qq-vega-spec data-map view chart-options)

Build a complete Vega-Lite spec for Q-Q plots. Separate subplots per distribution.

Takes data-map, view options, and chart-options map containing :width and/or :height for chart dimensions.

View options: :samples-id - Key for samples data in data-map (default :samples) :distribution-fit-id - Key for distribution fit data (default :distribution-fit)

Each fitted distribution gets its own subplot. If data follows the distribution, points lie along the y=x reference line. The best-fit model has bold title. Subplots are arranged in a 2-column grid.

Returns the Vega-Lite spec without viewer-specific wrapping.

Build a complete Vega-Lite spec for Q-Q plots.
Separate subplots per distribution.

Takes data-map, view options, and chart-options map containing :width and/or
:height for chart dimensions.

View options:
  :samples-id - Key for samples data in data-map (default :samples)
  :distribution-fit-id - Key for distribution fit data
                         (default :distribution-fit)

Each fitted distribution gets its own subplot. If data follows the
distribution, points lie along the y=x reference line. The best-fit
model has bold title.  Subplots are arranged in a 2-column grid.

Returns the Vega-Lite spec without viewer-specific wrapping.
sourceraw docstring

qq-pointsclj

(qq-points samples quantile-fn transforms)

Generate Q-Q plot points comparing sample quantiles to theoretical quantiles.

For each sample value (ordered), computes:

  • theoretical: the theoretical quantile at probability (i-0.5)/n
  • observed: the actual sample value

If data follows the theoretical distribution, points should lie along y=x. Points with non-finite theoretical values are filtered out.

Returns a vector of {"theoretical" x "observed" y} maps.

Generate Q-Q plot points comparing sample quantiles to theoretical quantiles.

For each sample value (ordered), computes:
- theoretical: the theoretical quantile at probability (i-0.5)/n
- observed: the actual sample value

If data follows the theoretical distribution, points should lie along y=x.
Points with non-finite theoretical values are filtered out.

Returns a vector of {"theoretical" x "observed" y} maps.
sourceraw docstring

qq-reference-line-layerclj

(qq-reference-line-layer min-val max-val)

Build a y=x reference line layer for Q-Q plots.

Takes the min and max values from the data range to draw the diagonal. Points lying on this line indicate perfect fit to the distribution.

Build a y=x reference line layer for Q-Q plots.

Takes the min and max values from the data range to draw the diagonal.
Points lying on this line indicate perfect fit to the distribution.
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