public class FarthestPair
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FarthestPair.FarthestPairFilter |
static class |
FarthestPair.FarthestPairMap |
static class |
FarthestPair.FarthestPairReducer |
static class |
FarthestPair.FPInputFormatArray
Input format that returns a record reader that reads a pair of arrays of
shapes
|
static class |
FarthestPair.PairDistance |
Constructor and Description |
---|
FarthestPair() |
Modifier and Type | Method and Description |
---|---|
static int[] |
convexHullInPlace(double[] xs,
double[] ys,
int size)
In place version of convex hull.
|
static double |
cross(Point o,
Point a,
Point b) |
static void |
farthestPairMapReduce(Path inFile,
Path userOutPath,
OperationsParams params) |
static <S extends Point> |
farthestPairStream(S p)
Computes the closest pair by reading points from stream
|
static void |
main(java.lang.String[] args) |
static FarthestPair.PairDistance |
rotatingCallipers(Point[] a) |
public static FarthestPair.PairDistance rotatingCallipers(Point[] a)
public static int[] convexHullInPlace(double[] xs, double[] ys, int size)
xs
- ys
- size
- public static <S extends Point> FarthestPair.PairDistance farthestPairStream(S p) throws java.io.IOException
p
- java.io.IOException
public static void farthestPairMapReduce(Path inFile, Path userOutPath, OperationsParams params) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException