|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.table.join.AbstractCartesianMatchEngine
public abstract class AbstractCartesianMatchEngine
Abstract superclass for match engines working in a Cartesian space.
Field Summary |
---|
Fields inherited from interface uk.ac.starlink.table.join.MatchEngine |
---|
NO_BINS |
Constructor Summary | |
---|---|
AbstractCartesianMatchEngine(int ndim)
Constructor. |
Method Summary | |
---|---|
double |
getBinFactor()
Returns the multiplier for length scale that determines bin size. |
double |
getIsotropicScale()
Returns the isotropic scale. |
int |
getNdim()
Returns the dimensionality of the Cartesian space in which this match engine works. |
protected java.lang.Object[] |
getRadiusBins(double[] coords,
double radius)
Returns an array of the bin objects that may be covered within a given distance of a given position. |
protected double |
getScale(int idim)
Returns the scale value for a given dimension. |
protected java.lang.Object[] |
getScaleBins(double[] coords)
Returns an array of the bin objects that may be covered within the current anisotropic scale length in each direction of a given position. |
DescribedValue[] |
getTuningParameters()
Returns a set of DescribedValue objects whose values can be modified to tune the performance of the match. |
void |
setBinFactor(double binFactor)
Sets a multiplier for the length scale that determines bin size. |
void |
setIsotropicScale(double scale)
Sets the scale isotropically. |
protected void |
setScale(int idim,
double scale)
Sets the scale value for a given dimension. |
abstract java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.table.join.MatchEngine |
---|
canBoundMatch, getBins, getMatchBounds, getMatchParameters, getMatchScoreInfo, getTupleInfos, matchScore |
Constructor Detail |
---|
public AbstractCartesianMatchEngine(int ndim)
ndim
- dimensionality of Cartesian spaceMethod Detail |
---|
public int getNdim()
public void setBinFactor(double binFactor)
binFactor
- bin size multiplierpublic double getBinFactor()
public void setIsotropicScale(double scale)
scale
- guide error distancepublic double getIsotropicScale()
protected void setScale(int idim, double scale)
idim
- dimension indexscale
- guide error distance in dimension idim
protected double getScale(int idim)
idim
- dimension index
idim
public DescribedValue[] getTuningParameters()
MatchEngine
DescribedValue.setValue(java.lang.Object)
on the
returned objects.
Changing these values will make no difference to the output of
MatchEngine.matchScore(java.lang.Object[], java.lang.Object[])
, but may change the output of MatchEngine.getBins(java.lang.Object[])
.
This may change the CPU and memory requirements of the match,
but will not change the result. The default value should be
something sensible, so that setting the value of these parameters
is not in general required.
getTuningParameters
in interface MatchEngine
protected java.lang.Object[] getRadiusBins(double[] coords, double radius)
coords
- central positionradius
- error radius
radius
of coords
protected java.lang.Object[] getScaleBins(double[] coords)
coords
- central position
coords
public abstract java.lang.String toString()
toString
in class java.lang.Object
|
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 |