结构体 IRegressionAnalysis
继承关系
派生类
public gwm::GWDR
(类 GWDR)public gwm::GWRBase
(类 GWRBase)public gwm::GWRMultiscale
(类 GWRMultiscale)
结构体文档
-
struct IRegressionAnalysis
回归分析算法接口。
Subclassed by gwm::GWDR, gwm::GWRBase, gwm::GWRMultiscale
公有成员函数
-
virtual arma::vec dependentVariable() const = 0
获取因变量。
- 返回
arma::vec 因变量。
-
virtual void setDependentVariable(const arma::vec &y) = 0
设置因变量。
- 参数
y – 因变量。
-
virtual arma::mat independentVariables() const = 0
获取自变量。
- 返回
arma::mat 自变量。
-
virtual void setIndependentVariables(const arma::mat &x) = 0
设置自变量。
- 参数
x – 自变量。
-
virtual bool hasIntercept() const = 0
获取是否具有截距。
- 返回
true 如果有截距。
- 返回
false 如果没有截距。
-
virtual void setHasIntercept(const bool has) = 0
Set the Has Intercept object.
- 参数
has – 如果有截距则传入 true ,否则传入 false 。
-
virtual arma::mat predict(const arma::mat &locations) = 0
在指定位置处进行回归系数预测。
- 参数
locations – 指定位置。
- 返回
mat 回归系数预测值。
-
virtual arma::mat fit() = 0
拟合回归系数估计值。
- 返回
mat 回归系数估计值。
-
virtual RegressionDiagnostic diagnostic() const = 0
获取诊断信息。
- 返回
RegressionDiagnostic 诊断信息。
-
virtual arma::vec dependentVariable() const = 0