类 Weight

继承关系

派生类

类文档

class Weight

Abstract base class for calculating weight from distance. It defines some interface commonly used in spatial algorithms:

  • Clone this object.

  • Calculate distance vector for a focus point.

  • Get maximum distance among all points.

  • Get minimum distance among all points.

Pointer of this type can be put to these classes:

Subclassed by gwm::BandwidthWeight

公有类型

enum WeightType

Type of weight.

Values:

enumerator BandwidthWeight

Bandwidth weight

公有成员函数

inline Weight()

Construct a new Weight object.

inline virtual ~Weight()

Destroy the Weight object.

virtual Weight *clone() = 0

Clone this object.

返回

Newly created pointer.

virtual arma::vec weight(arma::vec dist) = 0

Calculate weight vector from a distance vector.

参数

dist – According distance vector.

返回

Weight vector.

公有静态属性

static std::unordered_map<WeightType, std::string> TypeNameMapper