Skip to content

Commit

Permalink
Add cluster based estimator (#275)
Browse files Browse the repository at this point in the history
### Proposed changes

Addresses #258 and #172.

Add new cluster based estimator. 

- Splits the space in a grid and determines the accumulated weight in
each cell.
- Starting from the weight peaks, it groups cells into clusters of ever
decreasing weight. It creates as many clusters as needed to cover all
the particle occupied space.
- Estimates mean and covariance for each.
- Returns the mean and covariance of the cluster with the highest
cumulative weight.

#### Type of change

- [ ] 🐛 Bugfix (change which fixes an issue)
- [x] 🚀 Feature (change which adds functionality)
- [ ] 📚 Documentation (change which fixes or extends documentation)

### Checklist

- [x] Lint and unit tests (if any) pass locally with my changes
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have added necessary documentation (if appropriate)
- [x] All commits have been signed for
[DCO](https://developercertificate.org/)

---------

Signed-off-by: Nahuel Espinosa <[email protected]>
Co-authored-by: Nahuel Espinosa <[email protected]>
  • Loading branch information
glpuga and nahueespinosa authored Jul 15, 2024
1 parent aa5c0d7 commit e8ca261
Show file tree
Hide file tree
Showing 5 changed files with 860 additions and 2 deletions.
1 change: 1 addition & 0 deletions beluga/include/beluga/algorithm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* \brief Includes all beluga algorithms.
*/

#include <beluga/algorithm/cluster_based_estimation.hpp>
#include <beluga/algorithm/distance_map.hpp>
#include <beluga/algorithm/effective_sample_size.hpp>
#include <beluga/algorithm/estimation.hpp>
Expand Down
Loading

0 comments on commit e8ca261

Please sign in to comment.