Class UnweightedNeighborhoodAdapter
- java.lang.Object
-
- elki.outlier.spatial.neighborhood.weighted.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnweightedNeighborhoodAdapter.Factory<O>
Factory class
-
Field Summary
Fields Modifier and Type Field Description (package private) NeighborSetPredicate
inner
Actual predicate
-
Constructor Summary
Constructors Constructor Description UnweightedNeighborhoodAdapter(NeighborSetPredicate inner)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<DoubleDBIDPair>
getWeightedNeighbors(DBIDRef reference)
Get the neighbors of a reference object for DBSCAN.
-
-
-
Field Detail
-
inner
NeighborSetPredicate inner
Actual predicate
-
-
Constructor Detail
-
UnweightedNeighborhoodAdapter
public UnweightedNeighborhoodAdapter(NeighborSetPredicate inner)
Constructor.- Parameters:
inner
- Actual neighborhood
-
-
Method Detail
-
getWeightedNeighbors
public java.util.Collection<DoubleDBIDPair> getWeightedNeighbors(DBIDRef reference)
Description copied from interface:WeightedNeighborSetPredicate
Get the neighbors of a reference object for DBSCAN.- Specified by:
getWeightedNeighbors
in interfaceWeightedNeighborSetPredicate
- Parameters:
reference
- Reference object- Returns:
- Weighted Neighborhood
-
-