| Package | Description |
|---|---|
| cz.cuni.amis.pogamut.base.utils.math |
| Modifier and Type | Class and Description |
|---|---|
static class |
DistanceUtils.GetLocatedDistance2D<T extends ILocated>
Simple implementation of
DistanceUtils.IGetDistance that uses Location.getDistance2D(Location) method. |
static class |
DistanceUtils.GetLocatedDistance3D<T extends ILocated>
Simple implementation of
DistanceUtils.IGetDistance that uses Location.getDistance(Location) method. |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
DistanceUtils.getDistanceSorted(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Returns "locations" sorted according to the distance to "target".
|
static <T> List<T> |
DistanceUtils.getDistanceSorted(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns "locations" accepted by all "filters" sorted according to the distance to "target".
|
static <T> T |
DistanceUtils.getFarthest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Returns the farthest object to 'target'.
|
static <T> T |
DistanceUtils.getFarthest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the farthest object from 'locations' to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getInBestRelation(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IBetterRelation betterRelation)
Returns "in-best-distance-relation-to-'target'" object.
|
static <T> T |
DistanceUtils.getInBestRelation(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IBetterRelation betterRelation,
DistanceUtils.IDistanceFilter... filters)
Returns "in-best-distance-relation-to-'target'" object.
|
static <T> T |
DistanceUtils.getInNthBestRelation(int nthBest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IBetterRelation betterRelation)
Returns "in-nth-best-distance-relation-to-'target'" object from 'locations'.
|
static <T> T |
DistanceUtils.getInNthBestRelation(int nthBest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IBetterRelation betterRelation,
DistanceUtils.IDistanceFilter... filters)
Returns "in-nth-best-distance-relation-to-'target'" object from 'location'.
|
static <T> T |
DistanceUtils.getNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Returns the nearest object from 'locations' to 'target'.
|
static <T> T |
DistanceUtils.getNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the nearest object from 'location' to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getNthFarthest(int nthFarthest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Returns the n-th farthest object from 'locations' to 'target'.
|
static <T> T |
DistanceUtils.getNthFarthest(int nthFarthest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the n-th farthest object from 'locations' to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getNthNearest(int nthNearest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Returns the n-th nearest object from 'locations' to 'target'.
|
static <T> T |
DistanceUtils.getNthNearest(int nthNearest,
Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Returns the n-th nearest object from 'locations' to 'target' that is accepted by all 'filters'.
|
static <T> T |
DistanceUtils.getSecondNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance)
Deprecated.
|
static <T> T |
DistanceUtils.getSecondNearest(Collection<T> locations,
ILocated target,
DistanceUtils.IGetDistance getDistance,
DistanceUtils.IDistanceFilter... filters)
Deprecated.
|
Copyright © 2019 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.