KJB
|
A class that represents a MCMCDA association. More...
#include <mcmcda_association.h>
Public Types | |
typedef Track::Element | Element |
typedef std::vector< Elementp_set > | Available_data |
typedef Parent::iterator | iterator |
typedef Parent::const_iterator | const_iterator |
typedef Parent::const_reference | const_reference |
Public Member Functions | |
Association () | |
Default constructor – meaningless association. Use with care!! More... | |
Association (const Data< Element > &data) | |
Constructor. More... | |
template<class Iterator > | |
Association (const Data< Element > &data, Iterator first, Iterator last) | |
Constructor from sequence and data. More... | |
const Data< Element > & | get_data () const |
Returns data set const-ref. More... | |
void | set_data (const Data< Element > &data) |
Set data. More... | |
Available_data | get_available_data () const |
Computes "available data". More... | |
Elementp_set | get_live_points_at_time (int t) const |
Computes points at time t that belong to some track. More... | |
int | count_live_points_at_time (int t) const |
Counts points at time t that belong to some track. This is usually faster than computing the points and getting size(). More... | |
Elementp_set | get_dead_points_at_time (int t) const |
Computes points at time t that do not belong to any track. More... | |
int | count_dead_points_at_time (int t) const |
Counts points at time t that do not belong to any track. This is usually faster than computing the points and getting size(). More... | |
Elementp_set | valid_starting_points (int t, int d, int d_bar, double v_bar, double sg, const typename Data< Element >::Convert &to_vector) const |
Computes points at time t that are valid starting points for a track. More... | |
int | count_valid_starting_points (int t, int d, int d_bar, double v_bar, double sg, const typename Data< Element >::Convert &to_vector) const |
Counts points at time t that are valid starting track points. This is usually faster than finding the points and getting size(). More... | |
Elementp_set | dead_neighbors (const Element &y, int t, int d, int d_bar, double v_bar, double sg, const typename Data< Element >::Convert &to_vector) const |
Computes neighbors of vector that are available. More... | |
int | count_dead_neighbors (const Element &y, int t, int d, int d_bar, double v_bar, double sg, const typename Data< Element >::Convert &to_vector) const |
Computes neighbors of vector that are available. This is usually faster than computing the points and getting size(). More... | |
void | read (const std::string &filename, const Track &def=Track()) |
Read association from file. More... | |
void | write (const std::string &filename) const |
Writes association to file. More... | |
bool | is_valid (double v_bar, int d_bar, double sg, const typename Data< Element >::Convert &convert) const |
Determines whether this association is valid. More... | |
Friends | |
void | swap (Association &a1, Association &a2) |
Efficiently swap two associations. More... | |
A class that represents a MCMCDA association.
This class represents an association, in the MCMCDA sense. Specifically, it is simply a set of tracks and a pointer to a tracking data set.
typedef std::vector<Elementp_set> kjb::mcmcda::Association< Track >::Available_data |
typedef Parent::const_iterator kjb::mcmcda::Association< Track >::const_iterator |
typedef Parent::const_reference kjb::mcmcda::Association< Track >::const_reference |
typedef Track::Element kjb::mcmcda::Association< Track >::Element |
typedef Parent::iterator kjb::mcmcda::Association< Track >::iterator |
|
inline |
Default constructor – meaningless association. Use with care!!
|
inline |
Constructor.
|
inline |
Constructor from sequence and data.
Copies the track set from iterator sequence and the pointer to the data from given data reference.
|
inline |
Computes neighbors of vector that are available. This is usually faster than computing the points and getting size().
|
inline |
Counts points at time t that do not belong to any track. This is usually faster than computing the points and getting size().
int kjb::mcmcda::Association< Track >::count_live_points_at_time | ( | int | t | ) | const |
Counts points at time t that belong to some track. This is usually faster than computing the points and getting size().
|
inline |
Counts points at time t that are valid starting track points. This is usually faster than finding the points and getting size().
|
inline |
Computes neighbors of vector that are available.
|
inline |
Computes "available data".
The available data is the set of points that have do not belong to any track.
|
inline |
Returns data set const-ref.
|
inline |
Computes points at time t that do not belong to any track.
Association< Track >::Elementp_set kjb::mcmcda::Association< Track >::get_live_points_at_time | ( | int | t | ) | const |
Computes points at time t that belong to some track.
bool kjb::mcmcda::Association< Track >::is_valid | ( | double | v_bar, |
int | d_bar, | ||
double | sg, | ||
const typename Data< Element >::Convert & | convert | ||
) | const |
Determines whether this association is valid.
void kjb::mcmcda::Association< Track >::read | ( | const std::string & | filename, |
const Track & | def = Track() |
||
) |
Read association from file.
|
inline |
Set data.
|
inline |
Computes points at time t that are valid starting points for a track.
void kjb::mcmcda::Association< Track >::write | ( | const std::string & | filename | ) | const |
Writes association to file.
|
friend |
Efficiently swap two associations.