forked from connormcmonigle/particle-filter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
particle_filter.h
32 lines (23 loc) · 857 Bytes
/
particle_filter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include <point/observation.h>
#include <point/particle_filter_configuration_parameters.h>
#include <point/prediction.h>
#include <memory>
namespace point {
class particle_filter {
private:
struct impl;
struct impl_deleter {
void operator()(impl* p_impl);
};
std::unique_ptr<impl, impl_deleter> p_impl_;
public:
[[nodiscard]] prediction extrapolate_state(const float& time_offset_seconds) const noexcept;
void update_state_sans_observation(const float& time_offset_seconds) noexcept;
void update_state_with_observation(const float& time_offset_seconds, const observation& observation_state) noexcept;
particle_filter(
const std::size_t& number_of_particles,
const observation& initial_observation,
const particle_filter_configuration_parameters& params) noexcept;
};
} // namespace plate_orbit