Skip to content

feat(devkit): implement percentile functions and P² streaming estimator (#258-#261)#326

Merged
Tinna23 merged 2 commits into
StellarCommons:mainfrom
Ibinola:feat/devkit-analysis-258-261
Jun 26, 2026
Merged

feat(devkit): implement percentile functions and P² streaming estimator (#258-#261)#326
Tinna23 merged 2 commits into
StellarCommons:mainfrom
Ibinola:feat/devkit-analysis-258-261

Conversation

@Ibinola

@Ibinola Ibinola commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Closes #258
Closes #259
Closes #260
Closes #261

Changes

#258: Update README with ## Simulation section

  • Document FeeModelConfig and NetworkLoadConfig fields
  • Add usage example with FeeModel::run and scenario generation
  • Document CSV/JSON export workflow

#259: Add percentile_nearest free function

  • Delegates to Percentile::nearest_rank internally
  • Returns u64 for the p-th nearest-rank percentile

#260: Add percentile_interpolated free function

  • Delegates to Percentile::linear_interpolation internally
  • Returns f64 for the p-th linearly interpolated percentile

#261: Implement PsquaredEstimator streaming P² estimator

  • O(1) memory, single-pass percentile estimation
  • Supports update(x) and estimate() API
  • Parabolic interpolation with linear fallback

- Add percentile_nearest and percentile_interpolated free functions (StellarCommons#259, StellarCommons#260)
- Implement PsquaredEstimator with P² streaming percentile algorithm (StellarCommons#261)
- Document ## Simulation section in README with FeeModelConfig, NetworkLoadConfig,
  example usage, and CSV export instructions (StellarCommons#258)

Closes StellarCommons#258
Closes StellarCommons#259
Closes StellarCommons#260
Closes StellarCommons#261
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@Ibinola Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Tinna23 Tinna23 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tinna23 Tinna23 merged commit dbc7344 into StellarCommons:main Jun 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants