14 #ifndef MLPACK_METHODS_EMST_EDGE_PAIR_HPP 15 #define MLPACK_METHODS_EMST_EDGE_PAIR_HPP 45 EdgePair(
const size_t lesser,
const size_t greater,
const double dist) :
46 lesser(lesser), greater(greater), distance(dist)
49 "EdgePair::EdgePair(): indices cannot be equal.");
53 size_t Lesser()
const {
return lesser; }
58 size_t Greater()
const {
return greater; }
71 #endif // MLPACK_METHODS_EMST_EDGE_PAIR_HPP size_t Greater() const
Get the greater index.
An edge pair is simply two indices and a distance.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
double & Distance()
Modify the distance.
size_t Lesser() const
Get the lesser 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.
size_t & Lesser()
Modify the lesser index.
size_t & Greater()
Modify the greater index.