Class ExtendedNeighborhood.Factory<O>
- java.lang.Object
-
- elki.outlier.spatial.neighborhood.AbstractPrecomputedNeighborhood.Factory<O>
-
- elki.outlier.spatial.neighborhood.ExtendedNeighborhood.Factory<O>
-
- All Implemented Interfaces:
NeighborSetPredicate.Factory<O>
- Enclosing class:
- ExtendedNeighborhood
public static class ExtendedNeighborhood.Factory<O> extends AbstractPrecomputedNeighborhood.Factory<O>
Factory class.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExtendedNeighborhood.Factory.Par<O>Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private NeighborSetPredicate.Factory<O>innerInner neighbor set predicateprivate intstepsNumber of steps to do
-
Constructor Summary
Constructors Constructor Description Factory(NeighborSetPredicate.Factory<O> inner, int steps)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private DataStore<DBIDs>extendNeighborhood(Database database, Relation<? extends O> relation)Method to load the external neighbors.TypeInformationgetInputTypeRestriction()Get the input type informationNeighborSetPredicateinstantiate(Database database, Relation<? extends O> relation)Instantiation method.
-
-
-
Field Detail
-
inner
private NeighborSetPredicate.Factory<O> inner
Inner neighbor set predicate
-
steps
private int steps
Number of steps to do
-
-
Constructor Detail
-
Factory
public Factory(NeighborSetPredicate.Factory<O> inner, int steps)
Constructor.- Parameters:
inner- Inner neighbor set predicatesteps- Number of steps to do
-
-
Method Detail
-
instantiate
public NeighborSetPredicate instantiate(Database database, Relation<? extends O> relation)
Description copied from interface:NeighborSetPredicate.FactoryInstantiation method.- Parameters:
database- Databaserelation- Relation to instantiate for.- Returns:
- instance
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:NeighborSetPredicate.FactoryGet the input type information- Returns:
- input type
-
-