public class IndexedHausdorffMeasure extends APointsetsMeasure
| Modifier and Type | Field and Description |
|---|---|
NaiveHausdorffMeasure |
nh |
PolygonIndex |
targetIndex |
computations, USE_GREAT_ELLIPTIC_DISTANCE| Constructor and Description |
|---|
IndexedHausdorffMeasure()
Initialization ensures that application fails if points were not indexed
before distances are computed
|
| Modifier and Type | Method and Description |
|---|---|
double |
computeDistance(Polygon X,
Polygon Y,
double threshold) |
int |
getComputations() |
Map<Point,Map<Point,Double>> |
getInnerDistances(Polygon s) |
String |
getName()
Returns name of a measure.
|
double |
getRuntimeApproximation(double mappingSize)
Returns the runtime approximation of a measure.
|
double |
getSimilarity(Instance instance1,
Instance instance2,
String property1,
String property2)
Returns the similarity between two instances, given their corresponding
properties.
|
double |
getSimilarity(Object object1,
Object object2)
Returns the similarity between two objects.
|
String |
getType()
Returns type of a measure.
|
AMapping |
run(Set<Polygon> source,
Set<Polygon> target,
double threshold) |
Map<String,Map<String,Double>> |
runWithoutIndex(Set<Polygon> source,
Set<Polygon> target,
double threshold) |
pointToPointDistancepublic PolygonIndex targetIndex
public NaiveHausdorffMeasure nh
public IndexedHausdorffMeasure()
public int getComputations()
getComputations in interface IPointsetsMeasuregetComputations in class APointsetsMeasurepublic Map<Point,Map<Point,Double>> getInnerDistances(Polygon s)
s - Polygonpublic Map<String,Map<String,Double>> runWithoutIndex(Set<Polygon> source, Set<Polygon> target, double threshold)
public String getName()
IMeasurepublic double getSimilarity(Object object1, Object object2)
IMeasuregetSimilarity in interface IMeasuregetSimilarity in class APointsetsMeasurepublic String getType()
IMeasurepublic double getSimilarity(Instance instance1, Instance instance2, String property1, String property2)
IMeasurepublic double getRuntimeApproximation(double mappingSize)
IMeasureCopyright © 2020. All rights reserved.