de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood.weighted
Class UnweightedNeighborhoodAdapter

java.lang.Object
  extended by 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.


Nested Class Summary
static class UnweightedNeighborhoodAdapter.Factory<O>
          Factory class
 
Field Summary
(package private)  NeighborSetPredicate inner
          Actual predicate
 
Constructor Summary
UnweightedNeighborhoodAdapter(NeighborSetPredicate inner)
          Constructor.
 
Method Summary
 Collection<DoubleObjPair<DBID>> getWeightedNeighbors(DBID reference)
          Get the neighbors of a reference object for DBSCAN.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inner

NeighborSetPredicate inner
Actual predicate

Constructor Detail

UnweightedNeighborhoodAdapter

public UnweightedNeighborhoodAdapter(NeighborSetPredicate inner)
Constructor.

Parameters:
inner - Actual neighborhood
Method Detail

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

Release 0.4.0 (2011-09-20_1324)