de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood.weighted
Class UnweightedNeighborhoodAdapter
java.lang.Object
de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood.weighted.UnweightedNeighborhoodAdapter
- All Implemented Interfaces:
- WeightedNeighborSetPredicate
public class UnweightedNeighborhoodAdapter
- extends Object
- implements WeightedNeighborSetPredicate
Adapter to use unweighted neighborhoods in an algorithm that requires
weighted neighborhoods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inner
NeighborSetPredicate inner
- Actual predicate
UnweightedNeighborhoodAdapter
public UnweightedNeighborhoodAdapter(NeighborSetPredicate inner)
- Constructor.
- Parameters:
inner
- Actual neighborhood
getWeightedNeighbors
public Collection<DoubleObjPair<DBID>> getWeightedNeighbors(DBID 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