1.2.3
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

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
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