1.3.2
CCC
 
metrics.cpp File Reference

Functions

double manhattan_dist (const double *x1, const double *x2, int size)
 
double euclidean_dist (const double *x1, const double *x2, int size)
 

Function Documentation

◆ euclidean_dist()

double euclidean_dist ( const double *  x1,
const double *  x2,
int  size 
)

Returns the Standard distance between two points

Parameters
x1Vector of coordinates for the first point
x2Vector of coordinates for the second point
sizeNumber of coordinates
Returns

◆ manhattan_dist()

double manhattan_dist ( const double *  x1,
const double *  x2,
int  size 
)

Returns the Manhattan distance between two points

Parameters
x1Vector of coordinates for the first point
x2Vector of coordinates for the second point
sizeNumber of coordinates
Returns