Class AbstractDistanceBasedSpatialOutlier<N,​O>

  • Type Parameters:
    N - Object type for neighborhood
    O - Non-spatial object type
    All Implemented Interfaces:
    Algorithm, OutlierAlgorithm
    Direct Known Subclasses:
    SLOM, SOF

    public abstract class AbstractDistanceBasedSpatialOutlier<N,​O>
    extends AbstractNeighborhoodOutlier<N>
    Abstract base class for distance-based spatial outlier detection methods.
    Since:
    0.4.0
    Author:
    Ahmed Hettab
    • Field Detail

      • nonSpatialDistance

        private Distance<O> nonSpatialDistance
        The distance function to use
    • Constructor Detail

      • AbstractDistanceBasedSpatialOutlier

        public AbstractDistanceBasedSpatialOutlier​(NeighborSetPredicate.Factory<N> npredf,
                                                   Distance<O> nonSpatialDistance)
        Constructor.
        Parameters:
        npredf - Neighborhood predicate factory
        nonSpatialDistance - Distance function to use on the non-spatial attributes.
    • Method Detail

      • getNonSpatialDistance

        protected Distance<O> getNonSpatialDistance()
        Get the non-spatial relation
        Returns:
        the distance function to use on the non-spatial attributes