KJB
|
A class that holds data for the tracking problem. More...
#include <mcmcda_data.h>
Public Types | |
typedef boost::function1 < Vector, const Element & > | Convert |
typedef Parent::iterator | iterator |
typedef Parent::const_iterator | const_iterator |
Public Member Functions | |
Data () | |
Empty constructor. More... | |
template<class Iterator > | |
Data (Iterator first, Iterator last) | |
Constructor from sequence. More... | |
void | read (const std::vector< std::string > &filenames) |
Reads data from files with given names. More... | |
void | write (const std::vector< std::string > &filenames) const |
Write data to files with given names. More... | |
virtual E_set | read_single_time (const std::string &) const |
Read data elements from a single time-step, contained in a single file. More... | |
virtual void | write_single_time (const E_set &, const std::string &) const |
Read data elements from a single time-step, contained in a single file. More... | |
bool | is_completely_empty () const |
Checks whether this data set is completely empty. More... | |
std::set< const Element * > | neighborhood (const Element &y, int t, int d, int d_bar, double v_bar, double sg, const Convert &to_vector) const |
Computes the neighborhood of a point. See MCMCDA paper for details. More... | |
int | neighborhood_size (const Element &y, int t, int d, int d_bar, double v_bar, double sg, const Convert &to_vector) const |
Computes the size of the neighborhood of a point. This should be faster than computing the neighborhood itself and getting its size(). More... | |
template<> | |
std::set< Vector > | read_single_time (const std::string &filename) const |
template<> | |
void | write_single_time (const E_set &data_t, const std::string &filename) const |
A class that holds data for the tracking problem.
It is a std::vector of sets of the association type. Each set represents the points at a given time, where the index gives the time step. In other words, if D is of type Data, D[t] is the data points found at time t.
typedef Parent::const_iterator kjb::mcmcda::Data< Element >::const_iterator |
typedef boost::function1<Vector, const Element&> kjb::mcmcda::Data< Element >::Convert |
typedef Parent::iterator kjb::mcmcda::Data< Element >::iterator |
|
inline |
Empty constructor.
|
inline |
Constructor from sequence.
Copies the track set from iterator sequence
|
inline |
Checks whether this data set is completely empty.
std::set< const Element * > kjb::mcmcda::Data< Element >::neighborhood | ( | const Element & | y, |
int | t, | ||
int | d, | ||
int | d_bar, | ||
double | v_bar, | ||
double | sg, | ||
const Convert & | to_vector | ||
) | const |
Computes the neighborhood of a point. See MCMCDA paper for details.
int kjb::mcmcda::Data< Element >::neighborhood_size | ( | const Element & | y, |
int | t, | ||
int | d, | ||
int | d_bar, | ||
double | v_bar, | ||
double | sg, | ||
const Convert & | to_vector | ||
) | const |
Computes the size of the neighborhood of a point. This should be faster than computing the neighborhood itself and getting its size().
|
inline |
Reads data from files with given names.
|
inlinevirtual |
Read data elements from a single time-step, contained in a single file.
Reimplemented in kjb::pt::Box_data.
|
inline |
void kjb::mcmcda::Data< Element >::write | ( | const std::vector< std::string > & | filenames | ) | const |
Write data to files with given names.
|
inlinevirtual |
Read data elements from a single time-step, contained in a single file.
Reimplemented in kjb::pt::Box_data.
|
inline |