de.lmu.ifi.dbs.elki.algorithm.outlier.spatial
Class CTLuZTestOutlier<N>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<OutlierResult>
      extended by de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.AbstractNeighborhoodOutlier<N>
          extended by de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.CTLuZTestOutlier<N>
Type Parameters:
N - Neighborhood type
All Implemented Interfaces:
Algorithm, OutlierAlgorithm, InspectionUtilFrequentlyScanned, Parameterizable

@Title(value="Z-Test Outlier Detection")
@Description(value="Outliers are detected by their z-deviation from the local mean.")
@Reference(authors="S. Shekhar and C.-T. Lu and P. Zhang",
           title="A Unified Approach to Detecting Spatial Outliers",
           booktitle="GeoInformatica 7-2, 2003",
           url="http://dx.doi.org/10.1023/A:1023455925009")
public class CTLuZTestOutlier<N>
extends AbstractNeighborhoodOutlier<N>

Detect outliers by comparing their attribute value to the mean and standard deviation of their neighborhood.

Reference:
S. Shekhar and C.-T. Lu and P. Zhang
A Unified Approach to Detecting Spatial Outliers
in in GeoInformatica 7-2, 2003.

Description:
Z-Test Algorithm uses mean to represent the average non-spatial attribute value of neighbors.
The Difference e = non-spatial-attribute-value - mean (Neighborhood) is computed.
The Spatial Objects with the highest standardized e value are Spatial Outliers.


Nested Class Summary
static class CTLuZTestOutlier.Parameterizer<N>
          Parameterization class
 
Field Summary
private static Logging logger
          The logger for this class.
 
Fields inherited from class de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.AbstractNeighborhoodOutlier
NEIGHBORHOOD_ID
 
Constructor Summary
CTLuZTestOutlier(NeighborSetPredicate.Factory<N> npredf)
          Constructor
 
Method Summary
 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> nrel, Relation<? extends NumberVector<?,?>> relation)
          Main method
 
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.AbstractNeighborhoodOutlier
getNeighborSetPredicateFactory
 
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm
makeParameterDistanceFunction, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.algorithm.outlier.OutlierAlgorithm
run
 

Field Detail

logger

private static final Logging logger
The logger for this class.

Constructor Detail

CTLuZTestOutlier

public CTLuZTestOutlier(NeighborSetPredicate.Factory<N> npredf)
Constructor

Parameters:
npredf -
Method Detail

run

public OutlierResult run(Database database,
                         Relation<N> nrel,
                         Relation<? extends NumberVector<?,?>> relation)
Main method

Parameters:
database - Database
nrel - Neighborhood relation
relation - Data relation (1d!)
Returns:
Outlier detection result

getLogger

protected Logging getLogger()
Description copied from class: AbstractAlgorithm
Get the (STATIC) logger for this class.

Specified by:
getLogger in class AbstractAlgorithm<OutlierResult>
Returns:
the static logger

getInputTypeRestriction

public TypeInformation[] getInputTypeRestriction()
Description copied from class: AbstractAlgorithm
Get the input type restriction used for negotiating the data query.

Specified by:
getInputTypeRestriction in interface Algorithm
Specified by:
getInputTypeRestriction in class AbstractAlgorithm<OutlierResult>
Returns:
Type restriction

Release 0.4.0 (2011-09-20_1324)