Particle Identification and Tracking
|
Track accumulator that implements computation of the mean squared displacement. More...
#include <ta_msd.h>
Public Member Functions | |
void | add_disp (const utilities::Tuplef &displacement, unsigned steps) |
Add a track segment displacement. More... | |
unsigned | max_step () const |
Returns the maximum step that the accumulator can deal with. More... | |
TA_msd (unsigned max_steps) | |
Constructor. More... | |
~TA_msd () | |
Destructor. More... | |
void | output_to_wrapper (utilities::Generic_wrapper &out, const utilities::Md_store &md_store) const |
Output function. More... | |
Private Attributes | |
std::vector< float > | summed_displacement_ |
vector of Histogram objects, one for each time step, for displacement along x. More... | |
std::vector< unsigned int > | segment_count_ |
vector of Histogram objects, one for each time step, for displacement along y. More... | |
unsigned | max_step_ |
Maximum time step. More... | |
Track accumulator that implements computation of the mean squared displacement.
TA_msd::TA_msd | ( | unsigned | max_steps) |
Constructor.
TA_msd::~TA_msd | ( | ) |
Destructor.
|
virtual |
Add a track segment displacement.
[in] | displacement | The net displacement of the track segment. |
[in] | steps | The number of time steps in the track segment. |
Implements tracking::Trk_accumulator.
References max_step_, segment_count_, and summed_displacement_.
|
inlinevirtual |
Returns the maximum step that the accumulator can deal with.
Implements tracking::Trk_accumulator.
References max_step_.
void TA_msd::output_to_wrapper | ( | utilities::Generic_wrapper & | out, |
const utilities::Md_store & | md_store | ||
) | const |
Output function.
References utilities::Generic_wrapper::add_dset(), utilities::Generic_wrapper::add_meta_data(), utilities::Generic_wrapper::close_group(), utilities::Generic_wrapper::close_wrapper(), utilities::format_name(), utilities::Md_store::get_value(), utilities::Generic_wrapper::is_open(), max_step_, utilities::Generic_wrapper::open_group(), utilities::Generic_wrapper::open_wrapper(), segment_count_, summed_displacement_, utilities::V_FLOAT, and utilities::V_INT.
Referenced by main().
|
private |
Maximum time step.
Referenced by add_disp(), max_step(), and output_to_wrapper().
|
private |
vector of Histogram objects, one for each time step, for displacement along y.
Referenced by add_disp(), and output_to_wrapper().
|
private |
vector of Histogram objects, one for each time step, for displacement along x.
Referenced by add_disp(), and output_to_wrapper().