Add rev20 optimization with vectorized Pr helper and validation suite#17
Add rev20 optimization with vectorized Pr helper and validation suite#17nicklasorte wants to merge 1 commit intomainfrom
Conversation
Vectorize monte_carlo_Pr_dBm_rev2_app into rev3 by replacing two nearestpoint_app calls with discretize and eliminating the per-TX scalar loop via sub2ind indexing (same proven pattern as clutter_rev5). Wire rev3 into subchunk_agg_check_maxazi_rev20 pipeline with fail-closed statistical validator and profiler against rev11 baseline. https://claude.ai/code/session_018i3rp6VALpD9dvwAoYQmMZ
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4a69d247d0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| base.subchunk_agg_check_maxazi_rev11=summarize_rows(baseline_tbl,match_rows(baseline_tbl,'subchunk_agg_check_maxazi_rev11'),baseline_wall_s); | ||
| base.monte_carlo_clutter_rev3_app=summarize_rows(baseline_tbl,match_rows(baseline_tbl,'monte_carlo_clutter_rev3_app'),baseline_wall_s); | ||
| base.monte_carlo_Pr_dBm_rev2_app=summarize_rows(baseline_tbl,match_rows(baseline_tbl,'monte_carlo_Pr_dBm_rev2_app'),baseline_wall_s); | ||
| base.monte_carlo_super_bs_eirp_dist_valid=summarize_rows(baseline_tbl,match_rows(baseline_tbl,eirp_pattern),baseline_wall_s); |
There was a problem hiding this comment.
Use rev11 EIRP helper when summarizing baseline profile
This baseline summary uses eirp_pattern selected from file existence, so when monte_carlo_super_bs_eirp_dist_rev8.m is present it matches rev8 in the rev11 profiler table even though subchunk_agg_check_maxazi_rev11 calls monte_carlo_super_bs_eirp_dist_rev5 (see subchunk_agg_check_maxazi_rev11.m line 80). In that common setup, base.monte_carlo_super_bs_eirp_dist_valid is recorded as not visible/zero, which silently skews baseline-vs-rev20 profiling outputs and can mislead performance conclusions.
Useful? React with 👍 / 👎.
Summary
This PR introduces
subchunk_agg_check_maxazi_rev20, a performance-optimized branch that replaces the Pr helper function with a vectorized implementation (monte_carlo_Pr_dBm_rev3_app), along with comprehensive profiling and statistical validation tools to ensure correctness against the golden rev11 baseline.Key Changes
New optimized function:
subchunk_agg_check_maxazi_rev20.mVectorized Pr helper:
monte_carlo_Pr_dBm_rev3_app.mnearestpoint_appbracket search withdiscretizefor speedProfiling tool:
profile_subchunk_agg_check_maxazi_rev20_real.mStatistical validation:
validate_subchunk_agg_check_maxazi_rev11_rev20_statistical.mImplementation Details
nearestpoint_appcalls per TX per MC iterationhttps://claude.ai/code/session_018i3rp6VALpD9dvwAoYQmMZ