This pull request introduces a new RegularGridSampler class, enhancing the sampling capabilities within n-dimensional hyperrectangles. The sampler is designed to generate samples that are as uniformly distributed across the grid as possible, with added functionality to handle over and undersampling when the requested number of samples cannot be perfectly achieved.
Which issue does this PR tackle?
Regular grids currently need to be sampled manually.
For more general descriptions of functions, function-spaces and their discrete representations a multitude of different samplers and sampling strategies are required.
How does it solve the problem?
Uniform Sampling: Efficiently samples from n-dimensional hyperrectangles to ensure a uniform distribution.
Flexible Sampling Options: Supports both oversampling and undersampling to facilitate sampling if the exact number of requested samples can not be achieved.
How are the changes tested?
Added unit-tests to ensure functionality.
Checklist for Contributors
[x] Scope: This PR tackles exactly one problem.
[x] Conventions: The branch follows the feature/title-slug convention.
[x] Conventions: The PR title follows the Bugfix: Title convention.
[x] Coding style: The code passes all pre-commit hooks.
[x] Documentation: All changes are well-documented.
[x] Tests: New features are tested and all tests pass successfully.
[x] Changelog: Updated CHANGELOG.md for new features or breaking changes.
[x] Review: A suitable reviewer has been assigned.
Checklist for Reviewers:
[x] The PR solves the issue it claims to solve and only this one.
[x] Changes are tested sufficiently and all tests pass.
Feature: Regular Grid Sampler
Description
This pull request introduces a new
RegularGridSampler
class, enhancing the sampling capabilities within n-dimensional hyperrectangles. The sampler is designed to generate samples that are as uniformly distributed across the grid as possible, with added functionality to handle over and undersampling when the requested number of samples cannot be perfectly achieved.Which issue does this PR tackle?
How does it solve the problem?
How are the changes tested?
Checklist for Contributors
feature/title-slug
convention.Bugfix: Title
convention.Checklist for Reviewers: