Public Member Functions | Public Attributes | List of all members
dt::SpliceDesc Struct Reference

Public Member Functions

 SpliceDesc (int cIdx, int pIdx, Chain &ch, int g, int t)
 
bool operator< (const SpliceDesc &sd) const
 

Public Attributes

int childIdx
 
int parentIdx
 
Chain spliced
 
int gap
 
int total
 

Detailed Description

Definition at line 651 of file DiscreteTracker_module.cc.

Constructor & Destructor Documentation

dt::SpliceDesc::SpliceDesc ( int  cIdx,
int  pIdx,
Chain ch,
int  g,
int  t 
)
inline

Member Function Documentation

bool dt::SpliceDesc::operator< ( const SpliceDesc sd) const
inline

Definition at line 656 of file DiscreteTracker_module.cc.

References gap, produceInfoGainMatrix::total, and total.

657  {
658  // Smaller gaps are better. Break ties with total length of spliced
659  // pieces.
660  if(gap == sd.gap) return total > sd.total;
661  return gap < sd.gap;
662  }
double sd(Eigen::VectorXd x)

Member Data Documentation

int dt::SpliceDesc::childIdx

Definition at line 664 of file DiscreteTracker_module.cc.

Referenced by dt::DiscreteTracker::SpliceChains().

int dt::SpliceDesc::gap

Definition at line 666 of file DiscreteTracker_module.cc.

Referenced by operator<().

int dt::SpliceDesc::parentIdx

Definition at line 664 of file DiscreteTracker_module.cc.

Referenced by dt::DiscreteTracker::SpliceChains().

Chain dt::SpliceDesc::spliced

Definition at line 665 of file DiscreteTracker_module.cc.

Referenced by dt::DiscreteTracker::SpliceChains().

int dt::SpliceDesc::total

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