Class CTLuZTestOutlier<N>

  • Type Parameters:
    N - Neighborhood type
    All Implemented Interfaces:
    Algorithm, OutlierAlgorithm

    @Title("Z-Test Outlier Detection")
    @Description("Outliers are detected by their z-deviation from the local mean.")
    @Reference(authors="S. Shekhar, C.-T. Lu, P. Zhang",
               title="A Unified Approach to Detecting Spatial Outliers",
               booktitle="GeoInformatica 7-2, 2003",
               url="https://doi.org/10.1023/A:1023455925009",
               bibkey="DBLP:journals/geoinformatica/ShekharLZ03")
    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, C.-T. Lu, P. Zhang
    A Unified Approach to Detecting Spatial Outliers
    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.

    Since:
    0.4.0
    Author:
    Ahmed Hettab
    • Constructor Detail

    • Method Detail

      • getInputTypeRestriction

        public TypeInformation[] getInputTypeRestriction()
        Description copied from interface: Algorithm
        Get the input type restriction used for negotiating the data query.
        Returns:
        Type restriction
      • 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