name: op-overlay-index-vs-baseline
kind: operator
category: OVERLAY
operator: OVERLAY_INDEX_VS_BASELINE
description: Per-point ratio index against a fixed positional baseline of an ordered SERIES host (×100).
type: reference
applies_to: process
examples_tags: [overlay, time-series, comparison]
Overlays decorate the host; no Response.Components.
Use when
Each point of an ordered series as an index value against a chosen baseline point (point / baseline x 100), e.g. growth since launch.
Questions it answers:
- How have monthly sales grown relative to the launch month?
- How does each wave’s score compare with the first wave, scaled to 100?
Use something else:
OVERLAY_DELTA_VS_BASELINEwhen you want the gap in the value’s own units.
Params
| Name | Type | Default | Description |
|---|---|---|---|
field | string | — | OUTPUT LABEL of the aggregation to score (label, else TYPE_field) or an expanded element column <label>[<elem>] (params.expand); absent = aggregations[0]; unknown → PULSE_OVERLAY_FIELD_UNKNOWN. |
partition_by | list | — | A leading prefix of the group key columns (Host shape); anything else → PULSE_OVERLAY_PARTITION_INVALID. |
scope must be group. ref.baseline_index.position (int, required) — >= 0; positional anchor in host order. level/within must be 0. Other ref arms → PULSE_OVERLAY_REF_INCOMPATIBLE_WITH_SHAPE.
Host shape
Ordered SERIES host (e.g. a date grouper). Over two or more groups it runs once per partition — the rows sharing the leading keys params.partition_by names (default all but the last, so the series runs down the last grouper; [] = one walk over every row), matched by key equality so a sort may interleave them — never crossing a segment. Ratio twin of the baseline delta.
Output
SERIES — one entry per host group key in host order, summary.statistic = point / baseline × 100 (the baseline point itself: 100). Layer summary.baseline = 100.
Contract
- Weight: not read; a weight in force is skipped.
- Streaming: buffered only.
Gotchas
- Out-of-range
position→PULSE_OVERLAY_REF_UNKNOWNat run time (predict cannot know the series length). - Zero (or absent) baseline point →
nullacross entries + ONEPULSE_OVERLAY_REF_ZEROper layer, unlike the subtractive twin. - Absent host point → its entry keeps the key, no
statistic. - Buffered: the baseline is read after the host finalizes.
- Weighted host → weighted figure (reads the host payload).