Domain shape detection predicates for visualization strategy selection.
Provides functions to analyze the structure of domain extract and comparison data to determine the appropriate visualization strategy (box plot, line chart, or table).
Domain shape detection predicates for visualization strategy selection. Provides functions to analyze the structure of domain extract and comparison data to determine the appropriate visualization strategy (box plot, line chart, or table).
(comparison-visualization-strategy comparison)Determine the visualization strategy for domain comparison data.
Returns one of:
Determine the visualization strategy for domain comparison data.
Returns one of:
- :single-point - single parameter point, multiple implementations
(box plot showing median with CI and percentiles)
- :multi-point - multiple parameter points, single axis (line chart)
- :default-table - regular table format (no chart)(single-axis-multi-point-any-impl? extract)Return true when extract has exactly one axis with multiple values, regardless of implementation count (single or multiple implementations).
This detects the 'line chart' scenario for showing metric values across a range of parameter values on a single axis.
Return true when extract has exactly one axis with multiple values, regardless of implementation count (single or multiple implementations). This detects the 'line chart' scenario for showing metric values across a range of parameter values on a single axis.
(single-axis-multi-point-comparison? comparison)Return true when comparison has multiple implementations at multiple points.
Line chart scenario: comparing implementations with a varying parameter axis.
Return true when comparison has multiple implementations at multiple points. Line chart scenario: comparing implementations with a varying parameter axis. - axis = :impl with different n values → true (line chart) - axis = :impl with no n or same n → false (use bar chart) - axis = :n with multiple n values → true (line chart)
(single-axis-multi-point? extract)Return true when extract has exactly one non-impl axis with multiple values and multiple implementations.
This detects the 'line chart' scenario where we're comparing multiple implementations across a range of parameter values on a single axis.
Return true when extract has exactly one non-impl axis with multiple values and multiple implementations. This detects the 'line chart' scenario where we're comparing multiple implementations across a range of parameter values on a single axis.
(single-point-multi-impl-comparison? comparison)Return true when comparison has multiple implementations at a single point.
Bar chart scenario: comparing implementations without varying parameters.
Return true when comparison has multiple implementations at a single point. Bar chart scenario: comparing implementations without varying parameters. - axis = :impl with no other params → true (bar chart) - axis = :impl with same n value across all → true (bar chart) - axis = :n with single n value → true (bar chart) - axis = :n with multiple n values → false (use line chart instead)
(single-point-multi-impl? extract)Return true when extract has exactly one non-impl axis with one value and multiple implementations.
This detects the 'single-point comparison' scenario where we're comparing multiple implementations at a single parameter point.
Return true when extract has exactly one non-impl axis with one value and multiple implementations. This detects the 'single-point comparison' scenario where we're comparing multiple implementations at a single parameter point.
(visualization-strategy extract)Determine the visualization strategy for domain extract data.
Returns one of:
Determine the visualization strategy for domain extract data.
Returns one of:
- :single-point - single parameter point, multiple implementations
(box plot showing median with CI and percentiles)
- :multi-point - multiple parameter points, single axis (line chart)
- :default-table - regular table format (no chart)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |