Add synthetic print and structure features

- Export synthetic market types
- Track special print conditions and derived cluster features
- Add same-size leg symmetry to structure packets
This commit is contained in:
dirtydishes 2026-05-13 22:36:13 -04:00
parent 8dcbcd2201
commit 9076d3b395
4 changed files with 103 additions and 0 deletions

View file

@ -130,6 +130,7 @@ describe("structure packet planning", () => {
expect(packet.features.nbbo_bb_count).toBe(1);
expect(packet.features.nbbo_mid_count).toBe(1);
expect(packet.features.nbbo_coverage_ratio).toBeCloseTo(1, 6);
expect(packet.features.same_size_leg_symmetry).toBeCloseTo(0.5, 4);
// 2 aggressive (AA + BB) out of 3 classified (AA + BB + MID)
expect(packet.features.nbbo_aggressive_ratio).toBeCloseTo(2 / 3, 4);