public static class FDBSCANNeighborPredicate.Instance extends java.lang.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 java.util.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 | 
|---|
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 java.util.Random rand
public 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.InstancegetNeighbors in interface NeighborPredicate.Instance<DBIDs>reference - Reference objectprivate boolean checkSamples(UncertainObject o1, UncertainObject o2)
public DBIDs getIDs()
NeighborPredicate.InstancegetIDs in interface NeighborPredicate.Instance<DBIDs>public DBIDIter iterDBIDs(DBIDs neighbors)
NeighborPredicate.InstanceiterDBIDs in interface NeighborPredicate.Instance<DBIDs>neighbors - Neighbors to iterate overCopyright © 2019 ELKI Development Team. License information.