Commit 9d3c597
authored
feat: adjustable radius API (#18)
* fix: add radius parameter to FrameMonitor and threshold to FrameCoverage
Previously FrameMonitor used hardcoded RADIUS from env var, inconsistent
with BKFrameMonitor and RustBKFrameMonitor which accept radius in their
constructors. This change makes all monitors consistent.
- Add FrameMonitor(radius=) constructor parameter
- Add FrameCoverage(threshold=) constructor parameter
- Add threshold parameter to get_frame_cov()
- Create docs/api.md with comprehensive API reference
- Update docs/frame_cov.md configuration section
* ignore fuzz link
* radius API analysis
* feat: change default RADIUS from 5 to 10
Based on empirical analysis of Zelda fuzzing dataset:
- radius=5: linear growth, no convergence (growth rate 0.55)
- radius=10: converging behavior (growth rate 0.36)
The new default provides better convergence characteristics
for games with high visual entropy while still distinguishing
meaningfully different game states.
See radius_analysis_report.md for full experimental results.
* bump version1 parent 55ed037 commit 9d3c597
10 files changed
Lines changed: 1260 additions & 612 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | | - | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments