Class DMatDistance
Defined in File DMatDistance.h
Nested Relationships
Nested Types
Inheritance Relationships
Base Type
public gwm::Distance
(Class Distance)
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 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
sizearma::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.
-
explicit DMatDistance(std::string dmatFile)