public class ERiCNeighborPredicate.Instance extends AbstractRangeQueryNeighborPredicate.Instance<DBIDs,PCAFilteredResult>
Modifier and Type | Field and Description |
---|---|
private Relation<? extends NumberVector> |
relation
Vector data relation.
|
ids, storage
Constructor and Description |
---|
ERiCNeighborPredicate.Instance(DBIDs ids,
DataStore<PCAFilteredResult> storage,
Relation<? extends NumberVector> relation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
approximatelyLinearDependent(PCAFilteredResult pca1,
PCAFilteredResult pca2)
Returns true, if the strong eigenvectors of the two specified PCAs span
up the same space.
|
int |
dimensionality(DBIDRef id)
Get the correlation dimensionality of a single object.
|
DBIDs |
getNeighbors(DBIDRef reference)
Get the neighbors of a reference object for DBSCAN.
|
DBIDIter |
iterDBIDs(DBIDs neighbors)
Add the neighbors to a DBID set
|
boolean |
strongNeighbors(NumberVector v1,
NumberVector v2,
PCAFilteredResult pca1,
PCAFilteredResult pca2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
boolean |
weakNeighbors(NumberVector v1,
NumberVector v2,
PCAFilteredResult pca1,
PCAFilteredResult pca2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
getIDs
private Relation<? extends NumberVector> relation
public ERiCNeighborPredicate.Instance(DBIDs ids, DataStore<PCAFilteredResult> storage, Relation<? extends NumberVector> relation)
ids
- IDs this is defined for.storage
- Stored modelspublic DBIDs getNeighbors(DBIDRef reference)
NeighborPredicate.Instance
reference
- Reference objectpublic DBIDIter iterDBIDs(DBIDs neighbors)
NeighborPredicate.Instance
neighbors
- Neighbors to iterate overpublic boolean strongNeighbors(NumberVector v1, NumberVector v2, PCAFilteredResult pca1, PCAFilteredResult pca2)
v1
- first DatabaseObjectv2
- second DatabaseObjectpca1
- first PCApca2
- second PCAtrue
when the two vectors are close enough.public boolean weakNeighbors(NumberVector v1, NumberVector v2, PCAFilteredResult pca1, PCAFilteredResult pca2)
v1
- first DatabaseObjectv2
- second DatabaseObjectpca1
- first PCApca2
- second PCAtrue
when the two vectors are close enough.protected boolean approximatelyLinearDependent(PCAFilteredResult pca1, PCAFilteredResult pca2)
pca1
- first PCApca2
- second PCApublic int dimensionality(DBIDRef id)
id
- Object IDCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.