Struct IRegressionAnalysis

Inheritance Relationships

Derived Types

Struct Documentation

struct IRegressionAnalysis

Interface for regression analysis algorithms.

Subclassed by gwm::GWDR, gwm::GWRBase, gwm::GWRMultiscale

Public Functions

virtual const arma::vec &dependentVariable() const = 0

Get the Dependent Variable object.

Returns:

arma::vec Dependent Variable.

virtual void setDependentVariable(const arma::vec &y) = 0

Set the Dependent Variable object.

Parameters:

y

virtual const arma::mat &independentVariables() const = 0

Get the Independent Variables object.

Returns:

arma::mat Independent Variables.

virtual void setIndependentVariables(const arma::mat &x) = 0

Set the Independent Variables object.

Parameters:

x

virtual bool hasIntercept() const = 0

Get whether has intercept.

Returns:

true if has intercept.

Returns:

false if doesnot has intercept.

virtual void setHasIntercept(const bool has) = 0

Set the Has Intercept object.

Parameters:

has – true if has intercept, otherwise false.

virtual arma::mat predict(const arma::mat &locations) = 0

Predict coefficients on specified locations.

Parameters:

locations – Locations where to predict coefficients.

Returns:

mat Predicted coefficients.

virtual arma::mat fit() = 0

Fit coefficient estimates.

Returns:

mat Coefficient estimates

virtual RegressionDiagnostic diagnostic() const = 0

Get diagnostic information.

Returns:

RegressionDiagnostic Diagnostic information.