|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.starlink.table.join.CartesianMatchEngine | +--uk.ac.starlink.table.join.SphericalPolarMatchEngine
Match engine which works with tuples representing RA, Dec and range.
Each tuple must be a 3-element array of Number
objects:
first element is Right Ascension in radians,
second element is Declination in radians,
third element is range (units are arbitrary, but will be the same as
the error supplied in the constructor).
Field Summary |
Fields inherited from class uk.ac.starlink.table.join.CartesianMatchEngine |
CELL_SCALE |
Constructor Summary | |
SphericalPolarMatchEngine(double err)
Constructs a new match engine which will match on differences not greater than a given number err, in the same units that the range part of the tuples is specified. |
Method Summary | |
Object[] |
getBins(Object[] tuple)
Returns a set of Cell objects representing the cell in which this tuple falls and somr or all of its neighbouring ones. |
double |
getError()
Returns the isotropic error. |
ValueInfo[] |
getTupleInfos()
Returns a set of ValueInfo objects indicating what is required for the elements of each tuple. |
boolean |
matches(Object[] tuple1,
Object[] tuple2)
Matches two tuples if they represent the coordinates of nearby points. |
void |
setErrors(double[] errs)
Sets the errors for matching. |
String |
toString()
|
Methods inherited from class uk.ac.starlink.table.join.CartesianMatchEngine |
getErrors, getMatchParameters, setError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SphericalPolarMatchEngine(double err)
err
- maximum separation for a matchMethod Detail |
public boolean matches(Object[] tuple1, Object[] tuple2)
CartesianMatchEngine
matches
in interface MatchEngine
matches
in class CartesianMatchEngine
tuple1
- ndim-element array of Number objects
representing coordinates of first objecttuple2
- ndim-element array of Number objects
representing coordinates of second object
public Object[] getBins(Object[] tuple)
CartesianMatchEngine
getBins
in interface MatchEngine
getBins
in class CartesianMatchEngine
tuple
- ndim-element array of Number objects
representing coordinates of an objectpublic ValueInfo[] getTupleInfos()
MatchEngine
getTupleInfos
in interface MatchEngine
getTupleInfos
in class CartesianMatchEngine
public String toString()
toString
in class CartesianMatchEngine
public void setErrors(double[] errs)
setErrors
in class CartesianMatchEngine
errs
- array with all the same elements
IllegalArgumentException
- if not all elements of
errs are equal (this would signal an
anisotropic error range, not supported by this class)public double getError()
|
Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |