Class LinearWeightedExtendedNeighborhood.Factory<O>
- java.lang.Object
-
- elki.outlier.spatial.neighborhood.weighted.LinearWeightedExtendedNeighborhood.Factory<O>
-
- All Implemented Interfaces:
WeightedNeighborSetPredicate.Factory<O>
- Enclosing class:
- LinearWeightedExtendedNeighborhood
public static class LinearWeightedExtendedNeighborhood.Factory<O> extends java.lang.Object implements WeightedNeighborSetPredicate.Factory<O>
Factory class.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinearWeightedExtendedNeighborhood.Factory.Par<O>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description private NeighborSetPredicate.Factory<O>
inner
Inner neighbor set predicateprivate int
steps
Number 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 TypeInformation
getInputTypeRestriction()
Get the input type informationLinearWeightedExtendedNeighborhood
instantiate(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 LinearWeightedExtendedNeighborhood instantiate(Database database, Relation<? extends O> relation)
Description copied from interface:WeightedNeighborSetPredicate.Factory
Instantiation method.- Specified by:
instantiate
in interfaceWeightedNeighborSetPredicate.Factory<O>
- Parameters:
database
- Database contextrelation
- Relation to instantiate for.- Returns:
- instance
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:WeightedNeighborSetPredicate.Factory
Get the input type information- Specified by:
getInputTypeRestriction
in interfaceWeightedNeighborSetPredicate.Factory<O>
- Returns:
- input type
-
-