Class Weight

Inheritance Relationships

Derived Type

Class Documentation

class Weight

Abstract base class for calculating weight from distance.

Subclassed by gwm::BandwidthWeight

Public Types

enum WeightType

Type of weight.

Values:

enumerator BandwidthWeight

Bandwidth weight.

Public Functions

inline Weight()

Construct a new Weight object.

inline virtual ~Weight()

Destroy the Weight object.

virtual Weight *clone() const = 0

Clone this object. Newly created pointer.

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

Calculate weight vector from a distance vector. According distance vector Weight vector.

Public Static Attributes

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