Skip to main content

ta_benchmarks/
pattern_shapes.rs

1//! Representative Pattern Recognition execution-shape metadata.
2
3#[derive(Clone, Copy, Debug, PartialEq, Eq)]
4pub struct PatternShapeSpec {
5    pub case_id: &'static str,
6    pub execution_shape: &'static str,
7    pub rationale: &'static str,
8}
9
10pub const PATTERN_SHAPES: [PatternShapeSpec; 3] = [
11    PatternShapeSpec {
12        case_id: "CDLDOJI",
13        execution_shape: "single-setting stateful rolling average",
14        rationale: "one immutable-default BodyDoji rolling history",
15    },
16    PatternShapeSpec {
17        case_id: "CDL3WHITESOLDIERS",
18        execution_shape: "multi-setting stateful rolling averages",
19        rationale: "four independently aligned immutable-default rolling histories: ShadowVeryShort, BodyShort, Far, and Near",
20    },
21    PatternShapeSpec {
22        case_id: "CDLENGULFING",
23        execution_shape: "setting-free cross-candle predicate",
24        rationale: "setting-free predicate over current and previous candles; Streaming retains cross-candle state",
25    },
26];