com.c5corp.c5Algorithms
Class OtherLocation

java.lang.Object
  extended by com.c5corp.c5Algorithms.OtherLocation

public class OtherLocation
extends java.lang.Object

OtherLocation contains the getOtherLocation method that identifies the closest topographical other in the database given a characteristics definition. See (the UTM_POINT_STATS table) to a given input location.

Since:
2.0
Author:
Brett Stalbaum

Field Summary
static int STDEV_CLOSEST
          STDEV_CLOSEST sorts the Vector by the closest matching standard deviation
static int STDEV_TOPOGRAPHY
          STDEV_TOPOGRAPHY sorts by closest matching standard deviation and limits the results to similar topography
 
Constructor Summary
OtherLocation()
           
 
Method Summary
static java.util.Vector<StatisticalPoint> getOtherLocation(StatisticalPoint point, int filter, java.sql.Connection connection)
          The C5UTM.findSimilarPoints(...) method returns an unsorted Vector of similar StatisicalPoint pbjects.
static java.util.Vector<StatisticalPoint> getOtherLocation(StatisticalPoint point, int tolerance, int filter, java.sql.Connection connection)
          The C5UTM.findSimilarPoints(...) method returns an unsorted Vector of similar StatisicalPoint pbjects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDEV_CLOSEST

public static final int STDEV_CLOSEST
STDEV_CLOSEST sorts the Vector by the closest matching standard deviation

See Also:
Constant Field Values

STDEV_TOPOGRAPHY

public static final int STDEV_TOPOGRAPHY
STDEV_TOPOGRAPHY sorts by closest matching standard deviation and limits the results to similar topography

See Also:
Constant Field Values
Constructor Detail

OtherLocation

public OtherLocation()
Method Detail

getOtherLocation

public static java.util.Vector<StatisticalPoint> getOtherLocation(StatisticalPoint point,
                                                                  int filter,
                                                                  java.sql.Connection connection)
The C5UTM.findSimilarPoints(...) method returns an unsorted Vector of similar StatisicalPoint pbjects. The static getOtherLocation(...) methods of this class executes C5UTM.findSimilarPoints(...) method (internally opening and closing a java.sql.Connection object), but allows a "filter" to be specified. Refer to the documentation of the public final ints in this class for details on filtering options. This version of the method backs off the standard deviation argument to C5UTM.findSimilarPoints(...) a total of 10 times.

Parameters:
point - a StatisticalPoint object
filter - see the static final ints in this class for info on filtering
connection - a java.sql.Connection
Returns:
a Vector containing the filtered results

getOtherLocation

public static java.util.Vector<StatisticalPoint> getOtherLocation(StatisticalPoint point,
                                                                  int tolerance,
                                                                  int filter,
                                                                  java.sql.Connection connection)
The C5UTM.findSimilarPoints(...) method returns an unsorted Vector of similar StatisicalPoint pbjects. The static getOtherLocation(...) methods of this class executes that method, but allows a "filter" to be specified. The filters are really just sorting/sifting algorithms. Refer to the documentation of the public final ints in this class for details on filtering options. This version of the method can reuse a Connection object if you already have one. The other methods in this class use this method.

Parameters:
point - a StatisticalPoint object
tolerance - a +/- range applied to the standard deviation metric to be searched
filter - see the static final ints in this class for info on filtering
connection - a java.sql.Connection to the database
Returns:
a Vector containing the filtered results