Program Listing for File Weight.h
↰ Return to documentation for file (include/gwmodelpp/spatialweight/Weight.h
)
#ifndef WEIGHT_H
#define WEIGHT_H
#include <unordered_map>
#include <string>
#include <armadillo>
namespace gwm
{
class Weight
{
public:
enum WeightType
{
BandwidthWeight
};
static std::unordered_map<WeightType, std::string> TypeNameMapper;
public:
Weight() {}
virtual ~Weight() {}
virtual Weight* clone() = 0;
public:
virtual arma::vec weight(arma::vec dist) = 0;
};
}
#endif // WEIGHT_H