template class geode::Metric

Interface class for metric computation

#include <metric.h>

template <index_t dimension>
class Metric
{
public:
    // methods

    virtual double metric(const Point<dimension>& point) const = 0;
    virtual double average_metric() const = 0;
};

// direct descendants

template <index_t dimension>
class ConstantMetric;

template <index_t dimension>
class CustomGridMetric;

template <index_t dimension>
class GridMetric;