public class MathUtil extends Object
| Constructor and Description |
|---|
MathUtil() |
| Modifier and Type | Method and Description |
|---|---|
static double |
dot(double[] vector1,
double[] vector2)
Dot product of two 'double' vectors.
|
static double |
euclideanDistance(double[] point1,
double[] point2)
Finds the euclidean distance between two input points of equal dimension
|
public static double dot(double[] vector1,
double[] vector2)
vector1 - vector 1vector2 - vector 2public static double euclideanDistance(double[] point1,
double[] point2)
point1 - input point onepoint2 - input point twoCopyright © 2019 WSO2. All rights reserved.