@FunctionalInterface public interface DistanceFunction
| Modifier and Type | Interface and Description |
|---|---|
static class |
DistanceFunction.FarthestNeighbor
Special wrapper class which takes the inverse or the given function.
|
static class |
DistanceFunction.RectangleDist
This class calculates the distance to a rectangular shaped object.
|
| Modifier and Type | Field and Description |
|---|---|
static DistanceFunction |
CENTER |
static DistanceFunction |
EDGE |
| Modifier and Type | Method and Description |
|---|---|
static double |
centerDistance(double[] center,
double[] min,
double[] max) |
double |
dist(double[] center,
double[] min,
double[] max) |
default double |
dist(double[] center,
RectangleEntry<?> entry)
Some algorithm use this method on the entries containing user supplied values.
|
static double |
edgeDistance(double[] center,
double[] min,
double[] max) |
static final DistanceFunction CENTER
static final DistanceFunction EDGE
double dist(double[] center,
double[] min,
double[] max)
default double dist(double[] center,
RectangleEntry<?> entry)
static double centerDistance(double[] center,
double[] min,
double[] max)
static double edgeDistance(double[] center,
double[] min,
double[] max)
Copyright © 2017. All rights reserved.