Skip to main content

Module chart_overlay

Module chart_overlay 

Source
Expand description

Single-call computation of all chart statistical overlays for one WASM boundary crossing.

Structsยง

ChartOverlayView
Pre-computed chart overlay data returned across the WASM boundary.
ScatterOverlayView
Pre-computed scatter overlay (mean lines + regression segment); when valid is false the numeric fields are zeros.

Constantsยง

EMPTY_SCATTER ๐Ÿ”’
HALF_WINDOW_DIVISOR ๐Ÿ”’
MIN_POINTS_FOR_REGRESSION ๐Ÿ”’
MIN_SAMPLES_FOR_STD_DEV ๐Ÿ”’
PERCENTILE_25 ๐Ÿ”’
PERCENTILE_50 ๐Ÿ”’
PERCENTILE_75 ๐Ÿ”’
PERCENTILE_99 ๐Ÿ”’
SMA_WINDOW ๐Ÿ”’

Functionsยง

centered_sma ๐Ÿ”’
compute_chart_overlay
Compute all chart overlay statistics in one call.
compute_scatter_overlay
Compute scatter overlay statistics from paired (x, y) values; non-finite pairs are dropped, valid: false if too few pairs remain or xs are identical.