Class GWPCA
Defined in File GWPCA.h
Inheritance Relationships
Base Types
public gwm::SpatialMonoscaleAlgorithm
(Class SpatialMonoscaleAlgorithm)public gwm::IMultivariableAnalysis
(Struct IMultivariableAnalysis)
Class Documentation
-
class GWPCA : public gwm::SpatialMonoscaleAlgorithm, public gwm::IMultivariableAnalysis
Geographically weighted principle component analysis.
Public Functions
-
inline GWPCA(const arma::mat x, const arma::mat coords, const SpatialWeight &spatialWeight)
Construct a new GWPCA object. Variables Coordinates Spatial weighting scheme.
-
inline int keepComponents()
Get the number of Kept Components. Number of Kept Components.
-
inline void setKeepComponents(int k)
Set the number of Kept Components object. Number of Kept Components.
-
inline const arma::mat &localPV()
Get the Local Principle Values matrix. Local Principle Values matrix.
-
inline const arma::cube &loadings()
Get the Loadings matrix. Loadings matrix.
-
inline const arma::mat &sdev()
Get the Standard deviation matrix. Standard deviation matrix.
-
inline const arma::cube &scores()
Get the Scores matrix. Scores matrix.
-
inline virtual const arma::mat &variables() const override
Get variables.
- Returns:
Vector of variables.
-
inline virtual void setVariables(const arma::mat &x) override
Set variables.
- Parameters:
x – Vector of variables.
-
virtual void run() override
Run analysis algorithm.
-
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.
-
inline GWPCA(const arma::mat x, const arma::mat coords, const SpatialWeight &spatialWeight)