Class SpatialAlgorithm
Defined in File SpatialAlgorithm.h
Inheritance Relationships
Base Type
public gwm::Algorithm
(Class Algorithm)
Derived Types
public gwm::GWDR
(Class GWDR)public gwm::SpatialMonoscaleAlgorithm
(Class SpatialMonoscaleAlgorithm)public gwm::SpatialMultiscaleAlgorithm
(Class SpatialMultiscaleAlgorithm)
Class Documentation
-
class SpatialAlgorithm : public gwm::Algorithm
Abstract spatial algorithm class. This class cannot been constructed. It defines some interface commonly used in spatial algorithms.
Subclassed by gwm::GWDR, gwm::SpatialMonoscaleAlgorithm, gwm::SpatialMultiscaleAlgorithm
Public Functions
-
inline SpatialAlgorithm()
Construct a new SpatialAlgorithm object.
-
inline SpatialAlgorithm(const arma::mat &coords)
Construct a new SpatialAlgorithm object.
- Parameters:
coords – A coordinate matrix representing positions of samples.
-
inline virtual ~SpatialAlgorithm()
Destroy the SpatialAlgorithm object.
-
inline const arma::mat &coords() const
Get Coords.
- Returns:
arma::mat A coordinate matrix representing positions of samples.
-
inline void setCoords(const arma::mat &coords)
Set the Coords object.
- Parameters:
coords – Coordinates representing positions of samples.
-
virtual bool isValid() override
Check whether the algorithm’s configuration is valid.
- Returns:
true if the algorithm’s configuration is valid.
- Returns:
false if the algorithm’s configuration is invalid.
Protected Attributes
-
arma::mat mCoords
Coordinate matrix.
-
inline SpatialAlgorithm()