Struct OneDimDistance::Parameter

Nested Relationships

This struct is a nested type of Class OneDimDistance.

Inheritance Relationships

Base Type

Struct Documentation

struct Parameter : public gwm::Distance::Parameter

Struct of parameters used in spatial distance calculating according to coordinate reference system. Usually a pointer to object of this class is passed to OneDimDistance::distance().

Public Functions

inline Parameter(const arma::vec &fp, const arma::vec &dp)

Construct a new OneDimDistanceParameter object.

Parameters:
  • fp – Reference to focus points.

  • dp – Reference to data points.

Public Members

arma::vec focusPoints

Matrix of focus points’ coordinates. The shape of it must be nx2 and the first column is longitudes or x-coordinate, the second column is latitudes or y-coordinate.

arma::vec dataPoints

Matrix of data points’ coordinates. The shape of it must be nx2 and the first column is longitudes or x-coordinate, the second column is latitudes or y-coordinate.