Class MinkwoskiDistance
Defined in File MinkwoskiDistance.h
Inheritance Relationships
Base Type
public gwm::CRSDistance
(Class CRSDistance)
Class Documentation
-
class MinkwoskiDistance : public gwm::CRSDistance
Minkwoski distnace.
Public Functions
-
inline MinkwoskiDistance()
-
MinkwoskiDistance(double p, double theta)
Construct a new MinkwoskiDistance object Polynomial number Angle.
-
MinkwoskiDistance(const MinkwoskiDistance &distance)
Copy construct a new MinkwoskiDistance object The MinkwoskiDistance object to be copied.
-
inline virtual DistanceType type() override
Return the type of this object. Type of distance.
-
inline double poly() const
Get the polynomial number. Polynomial number.
-
inline void setPoly(double poly)
Set the polynomial number. Polynomial number.
-
inline double theta() const
Get the angle. Angle.
-
inline void setTheta(double theta)
Set the angle. Angle.
Public Static Functions
-
static arma::mat CoordinateRotate(const arma::mat &coords, double theta)
Rotate coordiantes. Coordiantes Angle Rotated coordinates.
-
static inline arma::vec ChessDistance(const arma::rowvec &out_loc, const arma::mat &in_locs)
Chess distance. Coordinate of focus point Coordinates of data poitnts Distance vector from the focus point to data points.
-
inline MinkwoskiDistance()