Class UnweightedNeighborhoodAdapter

  • All Implemented Interfaces:
    WeightedNeighborSetPredicate

    public class UnweightedNeighborhoodAdapter
    extends java.lang.Object
    implements WeightedNeighborSetPredicate
    Adapter to use unweighted neighborhoods in an algorithm that requires weighted neighborhoods.
    Since:
    0.4.0
    Author:
    Erich Schubert
    • Constructor Detail

      • UnweightedNeighborhoodAdapter

        public UnweightedNeighborhoodAdapter​(NeighborSetPredicate inner)
        Constructor.
        Parameters:
        inner - Actual neighborhood
    • Method Detail

      • getWeightedNeighbors

        public java.util.Collection<elki.database.ids.DoubleDBIDPair> getWeightedNeighbors​(elki.database.ids.DBIDRef reference)
        Description copied from interface: WeightedNeighborSetPredicate
        Get the neighbors of a reference object for DBSCAN.
        Specified by:
        getWeightedNeighbors in interface WeightedNeighborSetPredicate
        Parameters:
        reference - Reference object
        Returns:
        Weighted Neighborhood