#include <state.h>
Public Member Functions | |
virtual | ~state () |
virtual double | predict (const observation_type &observation, const double variance_scale=1.0)=0 |
virtual void | show (const double gray_level=0.5) const =0 |
virtual void | save (const std::string filename) const =0 |
virtual void | save (std::ofstream &file) const =0 |
void | write_to_log (std::ofstream &file) const |
An abstract class for representing the state of the particle filter.
virtual double state< observation_type >::predict | ( | const observation_type & | observation, | |
const double | variance_scale = 1.0 | |||
) | [pure virtual] |
The importance distribution of the tracker.
[in] | observation | The current observation. |
[in] | variance_scale | A scale factor for the default variance. This is used for annealed filters. |
Implemented in angle_bgsub_state< observation_type >, angle_state< observation_type >, bgsub_state< observation_type >, brownian_state< observation_type >, brownian_stick_state< observation_type >, hull_state< observation_type >, KBK_stick_state< observation_type >, pik_state< observation_type >, pik_stick_state< observation_type >, projection_state< observation_type >, stick2d_state< observation_type >, stick_state< observation_type >, tangent_state< observation_type >, angle_state< point_cloud_and_stick >, KBK_stick_state< point_cloud_and_stick >, projection_state< point_cloud_and_stick >, and stick_state< point_cloud_and_stick >.
virtual void state< observation_type >::save | ( | std::ofstream & | file | ) | const [pure virtual] |
Save the state to a stream.
[in] | file | The output stream. |
Implemented in skeleton_state< observation_type >, and skeleton_state< point_cloud_and_stick >.
virtual void state< observation_type >::save | ( | const std::string | filename | ) | const [pure virtual] |
Save the state to a file.
[in] | filename | The output filename. |
Implemented in skeleton_state< observation_type >, and skeleton_state< point_cloud_and_stick >.
virtual void state< observation_type >::show | ( | const double | gray_level = 0.5 |
) | const [pure virtual] |
Visualise the state.
[in] | gray_level | The gray-scale value when drawing the state. |
Implemented in skeleton_state< observation_type >, and skeleton_state< point_cloud_and_stick >.
void state< observation_type >::write_to_log | ( | std::ofstream & | file | ) | const [inline] |
Write relevant state information to the log.
[in] | file | The stream of the log file. |
Reimplemented in angle_bgsub_state< observation_type >, KBK_stick_state< observation_type >, and KBK_stick_state< point_cloud_and_stick >.