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.");
72 #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 & Greater()
Modify the greater index.
size_t Lesser() const
Get the lesser index.
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.
size_t greater
Greater index.
EdgePair(const size_t lesser, const size_t greater, const double dist)
Initialize an EdgePair with two indices and a distance.
size_t Greater() const
Get the greater index.
double & Distance()
Modify the distance.
size_t lesser
Lesser index.
double Distance() const
Get the distance.
size_t & Lesser()
Modify the lesser index.
double distance
Distance between two indices.