KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Friends | List of all members
kjb::mcmcda::Association< Track > Class Template Reference

A class that represents a MCMCDA association. More...

#include <mcmcda_association.h>

Inheritance diagram for kjb::mcmcda::Association< Track >:

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...
 

Detailed Description

template<class Track>
class kjb::mcmcda::Association< Track >

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.

See Also
Tracking_data
Track

Member Typedef Documentation

template<class Track>
typedef std::vector<Elementp_set> kjb::mcmcda::Association< Track >::Available_data
template<class Track>
typedef Parent::const_iterator kjb::mcmcda::Association< Track >::const_iterator
template<class Track>
typedef Parent::const_reference kjb::mcmcda::Association< Track >::const_reference
template<class Track>
typedef Track::Element kjb::mcmcda::Association< Track >::Element
template<class Track>
typedef Parent::iterator kjb::mcmcda::Association< Track >::iterator

Constructor & Destructor Documentation

template<class Track>
kjb::mcmcda::Association< Track >::Association ( )
inline

Default constructor – meaningless association. Use with care!!

template<class Track>
kjb::mcmcda::Association< Track >::Association ( const Data< Element > &  data)
inline

Constructor.

template<class Track>
template<class Iterator >
kjb::mcmcda::Association< Track >::Association ( const Data< Element > &  data,
Iterator  first,
Iterator  last 
)
inline

Constructor from sequence and data.

Copies the track set from iterator sequence and the pointer to the data from given data reference.

Member Function Documentation

template<class Track>
int kjb::mcmcda::Association< Track >::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
inline

Computes neighbors of vector that are available. This is usually faster than computing the points and getting size().

template<class Track>
int kjb::mcmcda::Association< Track >::count_dead_points_at_time ( int  t) const
inline

Counts points at time t that do not belong to any track. This is usually faster than computing the points and getting size().

template<class Track >
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().

template<class Track>
int kjb::mcmcda::Association< Track >::count_valid_starting_points ( int  t,
int  d,
int  d_bar,
double  v_bar,
double  sg,
const typename Data< Element >::Convert &  to_vector 
) const
inline

Counts points at time t that are valid starting track points. This is usually faster than finding the points and getting size().

template<class Track>
Elementp_set kjb::mcmcda::Association< Track >::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
inline

Computes neighbors of vector that are available.

template<class Track>
Available_data kjb::mcmcda::Association< Track >::get_available_data ( ) const
inline

Computes "available data".

The available data is the set of points that have do not belong to any track.

template<class Track>
const Data<Element>& kjb::mcmcda::Association< Track >::get_data ( ) const
inline

Returns data set const-ref.

template<class Track>
Elementp_set kjb::mcmcda::Association< Track >::get_dead_points_at_time ( int  t) const
inline

Computes points at time t that do not belong to any track.

template<class 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.

template<class 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.

template<class Track>
void kjb::mcmcda::Association< Track >::read ( const std::string &  filename,
const Track &  def = Track() 
)

Read association from file.

template<class Track>
void kjb::mcmcda::Association< Track >::set_data ( const Data< Element > &  data)
inline

Set data.

template<class Track>
Elementp_set kjb::mcmcda::Association< Track >::valid_starting_points ( int  t,
int  d,
int  d_bar,
double  v_bar,
double  sg,
const typename Data< Element >::Convert &  to_vector 
) const
inline

Computes points at time t that are valid starting points for a track.

template<class Track >
void kjb::mcmcda::Association< Track >::write ( const std::string &  filename) const

Writes association to file.

Friends And Related Function Documentation

template<class Track>
void swap ( Association< Track > &  a1,
Association< Track > &  a2 
)
friend

Efficiently swap two associations.


The documentation for this class was generated from the following file: