public class DistanceMeasureService extends Object
| Constructor and Description |
|---|
DistanceMeasureService() |
| Modifier and Type | Method and Description |
|---|---|
static double |
euclideanDistance(double[] x1,
double[] x2) |
static double |
getDistance(com.github.chen0040.data.frame.DataRow t1,
com.github.chen0040.data.frame.DataRow t2,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,com.github.chen0040.data.frame.DataRow,Double> distance) |
static double |
getDistance(com.github.chen0040.data.frame.DataRow t1,
double[] t2,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distance) |
static List<com.github.chen0040.data.utils.TupleTwo<com.github.chen0040.data.frame.DataRow,Double>> |
getKNearestNeighbors(com.github.chen0040.data.frame.DataFrame batch,
com.github.chen0040.data.frame.DataRow t,
int k,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distanceMeasure) |
static com.github.chen0040.data.utils.TupleTwo<com.github.chen0040.data.frame.DataRow,Double> |
getKthNearestNeighbor(com.github.chen0040.data.frame.DataFrame batch,
com.github.chen0040.data.frame.DataRow tuple,
int k,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distanceMeasure) |
public static double getDistance(com.github.chen0040.data.frame.DataRow t1,
double[] t2,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distance)
public static double getDistance(com.github.chen0040.data.frame.DataRow t1,
com.github.chen0040.data.frame.DataRow t2,
java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,com.github.chen0040.data.frame.DataRow,Double> distance)
public static double euclideanDistance(double[] x1,
double[] x2)
public static List<com.github.chen0040.data.utils.TupleTwo<com.github.chen0040.data.frame.DataRow,Double>> getKNearestNeighbors(com.github.chen0040.data.frame.DataFrame batch, com.github.chen0040.data.frame.DataRow t, int k, java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distanceMeasure)
public static com.github.chen0040.data.utils.TupleTwo<com.github.chen0040.data.frame.DataRow,Double> getKthNearestNeighbor(com.github.chen0040.data.frame.DataFrame batch, com.github.chen0040.data.frame.DataRow tuple, int k, java.util.function.BiFunction<com.github.chen0040.data.frame.DataRow,double[],Double> distanceMeasure)
Copyright © 2017. All rights reserved.