N
- Neighborhood object typeO
- Attribute object typeD
- Distance type@Title(value="Spatial Outlier Factor") @Reference(authors="Huang, T., Qin, X.", title="Detecting outliers in spatial database", booktitle="Proc. 3rd International Conference on Image and Graphics", url="http://dx.doi.org/10.1109/ICIG.2004.53") public class SOF<N,O,D extends NumberDistance<D,?>> extends AbstractDistanceBasedSpatialOutlier<N,O,D>
LOF
variation.
Since the "reachability distance" of LOF cannot be used canonically in the
bichromatic case, this part of LOF is dropped and the exact distance is used
instead.
Huang, T., Qin, X.
Detecting outliers in spatial database.
In: Proc. 3rd International Conference on Image and Graphics,
Hong Kong, China.
Modifier and Type | Class and Description |
---|---|
static class |
SOF.Parameterizer<N,O,D extends NumberDistance<D,?>>
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
logger
The logger for this class.
|
NON_SPATIAL_DISTANCE_FUNCTION_ID
NEIGHBORHOOD_ID
Constructor and Description |
---|
SOF(NeighborSetPredicate.Factory<N> npred,
PrimitiveDistanceFunction<O,D> nonSpatialDistanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
OutlierResult |
run(Database database,
Relation<N> spatial,
Relation<O> relation)
The main run method
|
getNonSpatialDistanceFunction
getNeighborSetPredicateFactory
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging logger
public SOF(NeighborSetPredicate.Factory<N> npred, PrimitiveDistanceFunction<O,D> nonSpatialDistanceFunction)
npred
- Neighborhood predicatenonSpatialDistanceFunction
- Distance function on non-spatial
attributesprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
public OutlierResult run(Database database, Relation<N> spatial, Relation<O> relation)
database
- Database to use (actually unused)spatial
- Relation for neighborhoodrelation
- Attributes to evaluatepublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>