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 classLinearWeightedExtendedNeighborhood.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 TypeInformationgetInputTypeRestriction()Get the input type informationLinearWeightedExtendedNeighborhoodinstantiate(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.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
-
-