Class DMatDistance

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class DMatDistance : public gwm::Distance

[NOT AVALIABLE]

Public Functions

explicit DMatDistance(std::string dmatFile)

Construct a new DMatDistance object. Path to file of distance matrix.

DMatDistance(const DMatDistance &distance)

Copy construct a new DMatDistance object. DMatDistance object.

inline virtual Distance *clone() const override

Clone this Distance object. Newly created pointer.

inline virtual DistanceType type() override

Return the type of this object. Type of distance.

inline std::string dMatFile() const

Get the path to DMat file Path to DMat file.

inline void setDMatFile(const std::string &dMatFile)

Set the path to DMat file Path to DMat file.

virtual void makeParameter(std::initializer_list<DistParamVariant> plist) override

Create Parameter for Caclulating CRS Distance.

Parameters:

plist – A list of parameters containing 2 items:

  • arma::uword size

  • arma::uword rows

Returns:

DistanceParameter* The pointer to parameters.

virtual arma::vec distance(arma::uword focus) override

Calculate distance vector for a focus point. Focused point’s index. Require focus < total Distance vector for the focused point.

virtual double maxDistance() override

Get maximum distance among all points. Maximum distance.

virtual double minDistance() override

Get minimum distance among all points Maximum distance.

struct Parameter : public gwm::Distance::Parameter

Struct of parameters used in spatial distance calculating according to coordinate reference system.

Public Functions

inline Parameter(arma::uword size, arma::uword rows)

Public Members

arma::uword rowSize

Size of each rows.