public class GeoCollection<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoCollection.Double
This class stores numeric samples and uses Inverse distance weighting for interpolation
|
static class |
GeoCollection.Generic<X>
Creates a collection of generic samples.
|
static class |
GeoCollection.VectorialDouble |
Constructor and Description |
---|
GeoCollection(Interpolator<T> interp)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(LocationType point,
T value)
Add a new sample to this collection
|
java.util.Vector<T> |
inside(LocationType sw,
LocationType ne,
int maxPoints)
Query samples inside a rectangular area
|
java.util.LinkedHashMap<LocationType,T> |
insidePoints(LocationType sw,
LocationType ne,
int maxPoints)
Query samples inside a bounded rectangular area
|
static void |
main(java.lang.String[] args) |
T |
nearest(LocationType loc)
Return the nearest sample
|
java.util.Vector<T> |
nearestN(int numberOfPoints,
LocationType loc)
Return N nearest samples of given location
|
java.util.LinkedHashMap<LocationType,T> |
nearestNPoints(int numberOfPoints,
LocationType loc)
Return N nearest samples of given location
|
java.util.LinkedHashMap<LocationType,T> |
pointsWithin(LocationType loc,
double distance,
int maxPoints)
Query all samples within a given distance
|
void |
remove(LocationType point)
Remove an existing sample
|
T |
valueAt(LocationType loc)
Query the value for a given location
|
java.util.Vector<T> |
within(LocationType loc,
double distance,
int maxPoints)
Query all samples within a given distance
|
public GeoCollection(Interpolator<T> interp)
interp
- An interpolator which is used to interpolate samplespublic void add(LocationType point, T value)
point
- The location of the samplevalue
- The value of the samplepublic void remove(LocationType point)
point
- The location of the sample to be removedpublic java.util.Vector<T> nearestN(int numberOfPoints, LocationType loc)
numberOfPoints
- The maximum number of samples to returnloc
- The location where to search frompublic T nearest(LocationType loc)
loc
- A locationpublic T valueAt(LocationType loc)
loc
- A locationpublic java.util.Vector<T> within(LocationType loc, double distance, int maxPoints)
loc
- A locationdistance
- A distance, in metersmaxPoints
- Maximum number of samples to returnloc
and radius of distance
public java.util.LinkedHashMap<LocationType,T> insidePoints(LocationType sw, LocationType ne, int maxPoints)
sw
- The south west corner of the rectanglene
- The north east corner of the rectanglemaxPoints
- Maximum number of samples to returnpublic java.util.Vector<T> inside(LocationType sw, LocationType ne, int maxPoints)
sw
- The south west corner of the rectanglene
- The north east corner of the rectanglemaxPoints
- Maximum number of samples to returnpublic java.util.LinkedHashMap<LocationType,T> pointsWithin(LocationType loc, double distance, int maxPoints)
loc
- A locationdistance
- A distance, in metersmaxPoints
- Maximum number of samples to returnloc
and radius of distance
, together with their locationspublic java.util.LinkedHashMap<LocationType,T> nearestNPoints(int numberOfPoints, LocationType loc)
numberOfPoints
- The maximum number of samples to returnloc
- The location where to search frompublic static void main(java.lang.String[] args)
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.