Class ExternalNeighborhood.Factory
- java.lang.Object
-
- elki.outlier.spatial.neighborhood.AbstractPrecomputedNeighborhood.Factory<java.lang.Object>
-
- elki.outlier.spatial.neighborhood.ExternalNeighborhood.Factory
-
- All Implemented Interfaces:
NeighborSetPredicate.Factory<java.lang.Object>
- Enclosing class:
- ExternalNeighborhood
public static class ExternalNeighborhood.Factory extends AbstractPrecomputedNeighborhood.Factory<java.lang.Object>
Factory class.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExternalNeighborhood.Factory.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private java.net.URI
file
The input file.
-
Constructor Summary
Constructors Constructor Description Factory(java.net.URI file)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformation
getInputTypeRestriction()
Get the input type informationNeighborSetPredicate
instantiate(Database database, Relation<?> relation)
Instantiation method.private DataStore<DBIDs>
loadNeighbors(Database database, Relation<?> relation)
Method to load the external neighbors.
-
-
-
Method Detail
-
instantiate
public NeighborSetPredicate instantiate(Database database, Relation<?> relation)
Description copied from interface:NeighborSetPredicate.Factory
Instantiation method.- Parameters:
database
- Databaserelation
- Relation to instantiate for.- Returns:
- instance
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:NeighborSetPredicate.Factory
Get the input type information- Returns:
- input type
-
-