public static class FDBSCANNeighborPredicate.Instance extends Object implements NeighborPredicate.Instance<DBIDs>
Modifier and Type | Field and Description |
---|---|
private double |
epsilon
The epsilon distance a neighbor may have at most.
|
private double |
epsilonsq
The epsilon distance a neighbor may have at most.
|
private Random |
rand
The random generator to draw the samples with.
|
private Relation<? extends UncertainObject> |
relation
The relation holding the uncertain objects.
|
private int |
sampleSize
The size of samplesets that should be drawn for neighborcheck.
|
private double |
threshold
The relative amount of epsilon-close pairings determined by the
neighborcheck.
|
Constructor and Description |
---|
FDBSCANNeighborPredicate.Instance(double epsilon,
int sampleSize,
double threshold,
Relation<? extends UncertainObject> relation,
RandomFactory rand)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
checkSamples(UncertainObject o1,
UncertainObject o2) |
DBIDs |
getIDs()
Get the IDs the predicate is defined for.
|
DBIDs |
getNeighbors(DBIDRef reference)
Get the neighbors of a reference object for DBSCAN.
|
DBIDIter |
iterDBIDs(DBIDs neighbors)
Add the neighbors to a DBID set
|
private double epsilon
private double epsilonsq
private int sampleSize
private double threshold
private Relation<? extends UncertainObject> relation
private Random rand
public FDBSCANNeighborPredicate.Instance(double epsilon, int sampleSize, double threshold, Relation<? extends UncertainObject> relation, RandomFactory rand)
epsilon
- Maximum distancesampleSize
- Sampling sizethreshold
- Threshold on how many samples are within the radiusrelation
- Data relationrand
- Random generator for samplingpublic DBIDs getNeighbors(DBIDRef reference)
NeighborPredicate.Instance
getNeighbors
in interface NeighborPredicate.Instance<DBIDs>
reference
- Reference objectprivate boolean checkSamples(UncertainObject o1, UncertainObject o2)
public DBIDs getIDs()
NeighborPredicate.Instance
getIDs
in interface NeighborPredicate.Instance<DBIDs>
public DBIDIter iterDBIDs(DBIDs neighbors)
NeighborPredicate.Instance
iterDBIDs
in interface NeighborPredicate.Instance<DBIDs>
neighbors
- Neighbors to iterate overCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.