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 |
---|
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(double[] v1,
double[] v2,
PCAFilteredResult pca1,
PCAFilteredResult pca2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
getIDs
private Relation<? extends NumberVector> relation
public 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(double[] v1, double[] 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 © 2019 ELKI Development Team. License information.