9 lines
329 B
C++
9 lines
329 B
C++
#pragma once
|
|
#include "IDistanceCalculator.hpp"
|
|
/// <summary>
|
|
/// Computes the manhattan distance between two points, d = |x1-y1| + |x2-y2| + ... + |xn-yn|.
|
|
/// </summary>
|
|
class ManhattanDistance : IDistanceCalculator {
|
|
public:
|
|
double computeDistance(std::vector<double> attributesOne, std::vector<double> attributesTwo);
|
|
};
|