double compute(double a, double b) throws MathIllegalArgumentExceptionCompute the distance between two n-dimensional vectors.
The two vectors are required to have the same dimension.
a- the first vector
b- the second vector
- the distance between the two vectors
MathIllegalArgumentException- if the array lengths differ.