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 An edge pair is simply two indices and a distance.
Definition: edge_pair.hpp:28
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
size_t Lesser() const
Get the lesser index.
Definition: edge_pair.hpp:53
size_t & Greater()
Modify the greater index.
Definition: edge_pair.hpp:60
The core includes that mlpack expects; standard C++ includes and Armadillo.
double Distance() const
Get the distance.
Definition: edge_pair.hpp:63
EdgePair(const size_t lesser, const size_t greater, const double dist)
Initialize an EdgePair with two indices and a distance.
Definition: edge_pair.hpp:45
double & Distance()
Modify the distance.
Definition: edge_pair.hpp:65
size_t Greater() const
Get the greater index.
Definition: edge_pair.hpp:58
size_t & Lesser()
Modify the lesser index.
Definition: edge_pair.hpp:55
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
Definition: log.cpp:38