Public Member Functions | Public Attributes
pwiz::eharmony::NeighborJoiner Struct Reference

#include <NeighborJoiner.hpp>

Inheritance diagram for pwiz::eharmony::NeighborJoiner:

List of all members.

Public Member Functions

 NeighborJoiner (const vector< boost::shared_ptr< Entry > > &entries, const WarpFunctionEnum &wfe=Default)
void addDistanceAttribute (boost::shared_ptr< DistanceAttribute > attr)
void calculateDistanceMatrix ()
void joinNearest ()
void joinAll ()
- Public Member Functions inherited from pwiz::eharmony::Matrix
 Matrix ()
 Matrix (const int &r, const int &c)
 Matrix (const Matrix &m)
void insert (const double &value, const int &rowCoordinate, const int &columnCoordinate)
double access (const int &rowCoordinate, const int &columnCoordinate)
pair< int, int > getMinValLocation ()
ostream & write (ostream &os)

Public Attributes

vector< Entry_rowEntries
vector< Entry_columnEntries
vector< boost::shared_ptr
< DistanceAttribute > > 
vector< pair< int, int > > _tree
WarpFunctionEnum _wfe
- Public Attributes inherited from pwiz::eharmony::Matrix
vector< vector< double > > _rows
vector< vector< double > > _columns
multimap< double, pair< int,
int > > 

Detailed Description

Definition at line 39 of file NeighborJoiner.hpp.

Constructor & Destructor Documentation

pwiz::eharmony::NeighborJoiner::NeighborJoiner ( const vector< boost::shared_ptr< Entry > > &  entries,
const WarpFunctionEnum wfe = Default 

Member Function Documentation

void pwiz::eharmony::NeighborJoiner::addDistanceAttribute ( boost::shared_ptr< DistanceAttribute attr)

Definition at line 43 of file NeighborJoiner.hpp.

References _attributes.

{ _attributes.push_back(attr); }
void pwiz::eharmony::NeighborJoiner::calculateDistanceMatrix ( )
void pwiz::eharmony::NeighborJoiner::joinNearest ( )

Referenced by joinAll().

void pwiz::eharmony::NeighborJoiner::joinAll ( )

Definition at line 46 of file NeighborJoiner.hpp.

References _rowEntries, and joinNearest().

{ while (_rowEntries.size() > 1) joinNearest(); }

Member Data Documentation

vector<Entry > pwiz::eharmony::NeighborJoiner::_rowEntries

Definition at line 48 of file NeighborJoiner.hpp.

Referenced by joinAll().

vector<Entry > pwiz::eharmony::NeighborJoiner::_columnEntries

Definition at line 49 of file NeighborJoiner.hpp.

vector<boost::shared_ptr<DistanceAttribute> > pwiz::eharmony::NeighborJoiner::_attributes

Definition at line 51 of file NeighborJoiner.hpp.

Referenced by addDistanceAttribute().

vector<pair<int, int> > pwiz::eharmony::NeighborJoiner::_tree

Definition at line 52 of file NeighborJoiner.hpp.

WarpFunctionEnum pwiz::eharmony::NeighborJoiner::_wfe

Definition at line 54 of file NeighborJoiner.hpp.

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