de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood
Class PrecomputedKNearestNeighborNeighborhood.Factory<O,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.algorithm.outlier.spatial.neighborhood.PrecomputedKNearestNeighborNeighborhood.Factory<O,D>
Type Parameters:
O - Object type
D - Distance type
All Implemented Interfaces:
NeighborSetPredicate.Factory<O>, InspectionUtilFrequentlyScanned, Parameterizable
Enclosing class:
PrecomputedKNearestNeighborNeighborhood<D extends Distance<D>>

public static class PrecomputedKNearestNeighborNeighborhood.Factory<O,D extends Distance<D>>
extends Object
implements NeighborSetPredicate.Factory<O>

Factory class to instantiate for a particular relation.


Nested Class Summary
static class PrecomputedKNearestNeighborNeighborhood.Factory.Parameterizer<O,D extends Distance<D>>
          Parameterization class
 
Field Summary
private  DistanceFunction<? super O,D> distFunc
          distance function to use
private  int k
          parameter k
 
Constructor Summary
PrecomputedKNearestNeighborNeighborhood.Factory(int k, DistanceFunction<? super O,D> distFunc)
          Factory Constructor
 
Method Summary
 TypeInformation getInputTypeRestriction()
          Get the input type information
 NeighborSetPredicate instantiate(Relation<? extends O> relation)
          Instantiation method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

k

private int k
parameter k


distFunc

private DistanceFunction<? super O,D extends Distance<D>> distFunc
distance function to use

Constructor Detail

PrecomputedKNearestNeighborNeighborhood.Factory

public PrecomputedKNearestNeighborNeighborhood.Factory(int k,
                                                       DistanceFunction<? super O,D> distFunc)
Factory Constructor

Method Detail

instantiate

public NeighborSetPredicate instantiate(Relation<? extends O> relation)
Description copied from interface: NeighborSetPredicate.Factory
Instantiation method.

Specified by:
instantiate in interface NeighborSetPredicate.Factory<O>
Parameters:
relation - Relation to instantiate for.
Returns:
instance

getInputTypeRestriction

public TypeInformation getInputTypeRestriction()
Description copied from interface: NeighborSetPredicate.Factory
Get the input type information

Specified by:
getInputTypeRestriction in interface NeighborSetPredicate.Factory<O>
Returns:
input type

Release 0.4.0 (2011-09-20_1324)