Class euclidean_dist

Inheritance Relationships

Base Type

Class Documentation

class euclidean_dist : public rcppsw::spatial::measurement<double, struct euclidean_dist_tag>

Specifies a distance in “real” spatial space, and as such is always positive.

Public Functions

inline explicit euclidean_dist(const double &v)
euclidean_dist(const euclidean_dist&) = default
~euclidean_dist(void) override = default
inline euclidean_dist operator*(const euclidean_dist &rhs) const
inline euclidean_dist operator*(double rhs) const
inline euclidean_dist operator+(const euclidean_dist &rhs) const
inline euclidean_dist operator+(double rhs) const
inline euclidean_dist &operator+=(const euclidean_dist &rhs)
inline euclidean_dist &operator+=(double rhs)
inline euclidean_dist operator-(const euclidean_dist &rhs) const
inline euclidean_dist operator-(double rhs) const
inline euclidean_dist &operator-=(double rhs)
inline euclidean_dist operator/(const euclidean_dist &rhs) const
inline euclidean_dist operator/(double rhs) const
inline euclidean_dist &operator=(const euclidean_dist &rhs)

Public Static Functions

static euclidean_dist make(const double &value)

Create a euclidean_dist from a numeric value, making it positive if necessary. This incurs a higher runtime cost, and so is a separate function from the constructor, which assumes the value to be positive semi-definite.