@FunctionalInterface public interface RectangleDistanceFunction
| Modifier and Type | Interface and Description |
|---|---|
static class |
RectangleDistanceFunction.FarthestNeighbor
Special wrapper class which takes the inverse or the given function.
|
static class |
RectangleDistanceFunction.RectangleDist
This class calculates the distance to a rectangular shaped object.
|
| Modifier and Type | Field and Description |
|---|---|
static RectangleDistanceFunction |
CENTER |
static RectangleDistanceFunction |
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 RectangleDistanceFunction CENTER
static final RectangleDistanceFunction EDGE
double dist(double[] center,
double[] min,
double[] max)
default double dist(double[] center,
RectangleEntry<?> entry)
center - a pointentry - a rectanglestatic double centerDistance(double[] center,
double[] min,
double[] max)
static double edgeDistance(double[] center,
double[] min,
double[] max)
Copyright © 2018. All rights reserved.