uk.ac.starlink.table.join
Class IsotropicCartesianMatchEngine
java.lang.Object
uk.ac.starlink.table.join.AbstractCartesianMatchEngine
uk.ac.starlink.table.join.IsotropicCartesianMatchEngine
- All Implemented Interfaces:
- MatchEngine
public class IsotropicCartesianMatchEngine
- extends AbstractCartesianMatchEngine
Matcher which matches in an isotropic N-dimensional Cartesian space.
Two points are considered matching if they fall within an error
sphere of a given size.
- Since:
- 25 Aug 2004
Constructor Summary |
IsotropicCartesianMatchEngine(int ndim,
double err,
boolean normaliseScores)
Constructs a matcher which matches points in an
ndim-dimensional Cartesian space. |
Methods inherited from class uk.ac.starlink.table.join.AbstractCartesianMatchEngine |
canBoundMatch, getBins, getDimensions, getError, getMatchBounds, getMatchScoreInfo, getNormaliseScores, getScaleFactor, getTuningParameters, getTupleInfos, matchScore, setError, setNormaliseScores, setScaleFactor |
IsotropicCartesianMatchEngine
public IsotropicCartesianMatchEngine(int ndim,
double err,
boolean normaliseScores)
- Constructs a matcher which matches points in an
ndim-dimensional Cartesian space.
An initial isotropic error margin is specified.
- Parameters:
ndim
- dimensionality of the spaceerr
- initial maximum distance between two matching pointsnormaliseScores
- true iff you want match scores
to be normalised
setError
public void setError(double err)
- Sets the isotropic matching error.
- Parameters:
err
- radius of error sphere
getError
public double getError()
- Returns the isotropic matching error.
- Returns:
- radius of error sphere
getMatchParameters
public DescribedValue[] getMatchParameters()
- Returns a single parameter controlling the isotropic error
(radius of a match sphere).
- Specified by:
getMatchParameters
in interface MatchEngine
- Specified by:
getMatchParameters
in class AbstractCartesianMatchEngine
- Returns:
- array of described values which influence the match
toString
public String toString()
- Specified by:
toString
in class AbstractCartesianMatchEngine