Class GWRRobust
Defined in File GWRRobust.h
Inheritance Relationships
Base Type
public gwm::GWRBasic
(Class GWRBasic)
Class Documentation
-
class GWRRobust : public gwm::GWRBasic
Robust GWR.
Public Functions
-
inline bool filtered() const
Get whether to use filtered algorithm Yes No.
-
inline void setFiltered(bool value)
Set whether to use filtered algorithm Whether to use filtered algorithm.
-
virtual arma::mat predict(const arma::mat &locations) override
Predict coefficients on specified locations.
- Parameters:
locations – Locations where to predict coefficients.
- Returns:
mat Predicted coefficients.
-
virtual arma::mat fit() override
Fit coefficient estimates.
- Returns:
mat Coefficient estimates
-
arma::mat regressionHatmatrix(const arma::mat &x, const arma::vec &y, arma::mat &betasSE, arma::vec &shat, arma::vec &qdiag, arma::mat &S)
-
virtual void setParallelType(const ParallelType &type) override
Set the parallel type of this algorithm.
- Parameters:
type – Parallel type of this algorithm.
Protected Functions
-
arma::mat robustGWRCaliFirst(const arma::mat &x, const arma::vec &y, arma::mat &betasSE, arma::vec &shat, arma::vec &qDiag, arma::mat &S)
First type of calibration algorithm. Independent variables Dependent variables [out] Standard error of coefficient estimates [out] A vector of trace of \(S\) and \(S'S\) [out] Diagonal elements of matrix \(Q\) [out] Hat matrix \(S\) Coefficient estimates.
-
arma::mat robustGWRCaliSecond(const arma::mat &x, const arma::vec &y, arma::mat &betasSE, arma::vec &shat, arma::vec &qDiag, arma::mat &S)
Second type of calibration algorithm. Independent variables Dependent variables [out] Standard error of coefficient estimates [out] A vector of trace of \(S\) and \(S'S\) [out] Diagonal elements of matrix \(Q\) [out] Hat matrix \(S\) Coefficient estimates.
-
arma::vec filtWeight(arma::vec residual, double mse)
Calculate the second-level weights. Residuals Mean of squared error Second-level weights.
-
void createPredictionDistanceParameter(const arma::mat &locations)
Create prediction distance parameter. Locations where to predict coefficients.
-
inline bool filtered() const