public class LinearWeightedExtendedNeighborhood extends Object implements WeightedNeighborSetPredicate
Modifier and Type | Class and Description |
---|---|
static class |
LinearWeightedExtendedNeighborhood.Factory<O>
Factory class.
|
Modifier and Type | Field and Description |
---|---|
private NeighborSetPredicate |
inner
The data store to use
|
private int |
steps
The number of steps to extend to.
|
Constructor and Description |
---|
LinearWeightedExtendedNeighborhood(NeighborSetPredicate inner,
int steps)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private double |
computeWeight(int tsteps)
Compute the weight from the number of steps needed.
|
Collection<DoubleObjPair<DBID>> |
getWeightedNeighbors(DBID reference)
Get the neighbors of a reference object for DBSCAN.
|
private NeighborSetPredicate inner
private int steps
public LinearWeightedExtendedNeighborhood(NeighborSetPredicate inner, int steps)
inner
- Inner neighborhoodsteps
- Number of steps to expandprivate double computeWeight(int tsteps)
tsteps
- steps to targetpublic Collection<DoubleObjPair<DBID>> getWeightedNeighbors(DBID reference)
WeightedNeighborSetPredicate
getWeightedNeighbors
in interface WeightedNeighborSetPredicate
reference
- Reference object