Class UnweightedNeighborhoodAdapter.Factory<O>
- java.lang.Object
-
- elki.outlier.spatial.neighborhood.weighted.UnweightedNeighborhoodAdapter.Factory<O>
-
- Type Parameters:
O- Input object type
- All Implemented Interfaces:
WeightedNeighborSetPredicate.Factory<O>
- Enclosing class:
- UnweightedNeighborhoodAdapter
public static class UnweightedNeighborhoodAdapter.Factory<O> extends java.lang.Object implements WeightedNeighborSetPredicate.Factory<O>
Factory class- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) NeighborSetPredicate.Factory<O>innerThe inner predicate factory
-
Constructor Summary
Constructors Constructor Description Factory(NeighborSetPredicate.Factory<O> inner)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformationgetInputTypeRestriction()Get the input type informationUnweightedNeighborhoodAdapterinstantiate(Database database, Relation<? extends O> relation)Instantiation method.
-
-
-
Field Detail
-
inner
NeighborSetPredicate.Factory<O> inner
The inner predicate factory
-
-
Constructor Detail
-
Factory
public Factory(NeighborSetPredicate.Factory<O> inner)
Constructor.- Parameters:
inner- Actual (unweighted) predicate
-
-
Method Detail
-
instantiate
public UnweightedNeighborhoodAdapter instantiate(Database database, Relation<? extends O> relation)
Description copied from interface:WeightedNeighborSetPredicate.FactoryInstantiation method.- Specified by:
instantiatein interfaceWeightedNeighborSetPredicate.Factory<O>- Parameters:
database- Database contextrelation- Relation to instantiate for.- Returns:
- instance
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:WeightedNeighborSetPredicate.FactoryGet the input type information- Specified by:
getInputTypeRestrictionin interfaceWeightedNeighborSetPredicate.Factory<O>- Returns:
- input type
-
-