KiTrack  1.7.0
Public Member Functions | Protected Attributes | List of all members
KiTrack::Subset< T > Class Template Reference

A base class for subsets. More...

#include <Subset.h>

Inheritance diagram for KiTrack::Subset< T >:
KiTrack::SubsetHopfieldNN< T > KiTrack::SubsetSimple< T >

Public Member Functions

void add (T newElement)
 Adds an element.
 
void add (std::vector< T > newElements)
 Adds a vector of elements.
 
std::vector< T > getAccepted ()
 
std::vector< T > getRejected ()
 

Protected Attributes

std::vector< T > _elements
 
std::vector< T > _acceptedElements
 
std::vector< T > _rejectedElements
 

Detailed Description

template<class T>
class KiTrack::Subset< T >

A base class for subsets.

The idea behind the subset classes is, that one has a collection of elements, but not all elements are compatible with each other. One wants to find a subset of these elements, where all are compatible. Also the subset should have a high quality. Details about this can be found in the derived classes. For technical reasons (templates and virtual methods) this class only covers the basics.

Member Function Documentation

template<class T >
std::vector< T > KiTrack::Subset< T >::getAccepted ( )
inline
Returns
the subset of the best tracks, i.e. all the tracks that were accepted
template<class T >
std::vector< T > KiTrack::Subset< T >::getRejected ( )
inline
Returns
the tracks that got rejected (and are therefore not in the best subset)

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