|Modifier and Type||Method and Description|
Compute the distance between two n-dimensional vectors.
double compute(double a, double b) throws DimensionMismatchException
The two vectors are required to have the same dimension.
a- the first vector
b- the second vector
DimensionMismatchException- if the array lengths differ.
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.