N
- the type the spatial neighborhood is defined overO
- the type of objects handled by the algorithm@Title(value="SLOM: a new measure for local spatial outliers") @Description(value="Spatial local outlier measure (SLOM), which captures the local behaviour of datum in their spatial neighbourhood") @Reference(authors="S. Chawla, P. Sun", title="SLOM: a new measure for local spatial outliers", booktitle="Knowledge and Information Systems 9(4)", url="https://doi.org/10.1007/s10115-005-0200-2", bibkey="DBLP:journals/kais/ChawlaS06") public class SLOM<N,O> extends AbstractDistanceBasedSpatialOutlier<N,O>
Reference:
S. Chawla, P. Sun
SLOM: a new measure for local spatial outliers
Knowledge and Information Systems 9(4)
This implementation works around some corner cases in SLOM, in particular when an object has none or a single neighbor only (albeit the results will still not be too useful then), which will result in divisions by zero.
Modifier and Type | Class and Description |
---|---|
static class |
SLOM.Parameterizer<N,O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
NEIGHBORHOOD_ID
ALGORITHM_ID
Constructor and Description |
---|
SLOM(NeighborSetPredicate.Factory<N> npred,
PrimitiveDistanceFunction<O> 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) |
getNonSpatialDistanceFunction
getNeighborSetPredicateFactory
run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
public SLOM(NeighborSetPredicate.Factory<N> npred, PrimitiveDistanceFunction<O> nonSpatialDistanceFunction)
npred
- Neighborhood predicatenonSpatialDistanceFunction
- Distance function to use on the
non-spatial attributespublic OutlierResult run(Database database, Relation<N> spatial, Relation<O> relation)
database
- Database to processspatial
- Spatial Relation to use.relation
- Relation to use.protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<OutlierResult>
public TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<OutlierResult>
Copyright © 2019 ELKI Development Team. License information.