Skip to content

feat(model): add uniform distr for delay per packet#24

Merged
BobAnkh merged 2 commits intomainfrom
uniform
Apr 13, 2026
Merged

feat(model): add uniform distr for delay per packet#24
BobAnkh merged 2 commits intomainfrom
uniform

Conversation

@Lethe10137
Copy link
Copy Markdown
Member

@Lethe10137 Lethe10137 commented Apr 11, 2026

Description

Added UniformDelayPerPacket, similar to NormalDelayPerPacket but changed the distribution to uniform distribution.

How Has This Been Tested

This has been tested in doc tests attached to the newly added structs and implementations.

Screenshots(optional)

Types of changes

This is a non-breaking change with only new features added.

Checklist

  • Code follows the code style of this project.
  • Changes follow the CONTRIBUTING guidelines.
  • Update necessary documentation accordingly.
  • Lint and tests pass locally with the changes.
  • Check issues and pull requests first. You don't want to duplicate effort.

Other information

@Lethe10137 Lethe10137 requested a review from BobAnkh April 11, 2026 16:15
Copy link
Copy Markdown
Member

@BobAnkh BobAnkh left a comment

Choose a reason for hiding this comment

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

Most of the code is fine; only some minor issues need to be fixed or explained.


/// Sets the upper bound
///
/// If the upper bound is not set, the upper bound will be the one of [`Delay`].
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do you mean by 'be the one of [Delay]'? I do think from the generation and settings, how we use upper_bound in uniform is not similar to how we do in normal distr. I prefer you to improve the comments.

@BobAnkh BobAnkh changed the title feat: uniform delay per packet feat(model): add uniform distr for delay per packet Apr 13, 2026
@BobAnkh BobAnkh merged commit 66642f6 into main Apr 13, 2026
9 checks passed
@BobAnkh BobAnkh deleted the uniform branch April 13, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants