public class MathUtil extends Object
Constructor and Description |
---|
MathUtil() |
Modifier and Type | Method and Description |
---|---|
static double |
euclideanDistance(double[] point1,
double[] point2)
finds the euclidean distance between two input points of equal dimension
|
static double |
roundOff(double value,
int places) |
static double |
sum(double[] val) |
public static double sum(double[] val)
public static double roundOff(double value, int places)
value
- double valueplaces
- number of decimal pointspublic static double euclideanDistance(double[] point1, double[] point2)
point1
- input point onepoint2
- input point twoCopyright © 2018 WSO2. All rights reserved.