16 #ifndef __MLPACK_METHODS_EMST_EDGE_PAIR_HPP 17 #define __MLPACK_METHODS_EMST_EDGE_PAIR_HPP 47 EdgePair(
const size_t lesser,
const size_t greater,
const double dist) :
48 lesser(lesser), greater(greater), distance(dist)
51 "EdgePair::EdgePair(): indices cannot be equal.");
74 #endif // __MLPACK_METHODS_EMST_EDGE_PAIR_HPP An edge pair is simply two indices and a distance.
Linear algebra utility functions, generally performed on matrices or vectors.
size_t Lesser() const
Get the lesser index.
size_t & Greater()
Modify the greater index.
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
size_t greater
Greater index.
double Distance() const
Get the distance.
EdgePair(const size_t lesser, const size_t greater, const double dist)
Initialize an EdgePair with two indices and a distance.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
double & Distance()
Modify the distance.
size_t lesser
Lesser index.
size_t Greater() const
Get the greater index.
size_t & Lesser()
Modify the lesser index.
double distance
Distance between two indices.