Class ERiCNeighborPredicate.Instance

    • Method Detail

      • getNeighbors

        public DBIDs getNeighbors​(DBIDRef reference)
        Description copied from interface: NeighborPredicate.Instance
        Get the neighbors of a reference object for DBSCAN.
        Parameters:
        reference - Reference object
        Returns:
        Neighborhood
      • iterDBIDs

        public DBIDIter iterDBIDs​(DBIDs neighbors)
        Description copied from interface: NeighborPredicate.Instance
        Add the neighbors to a DBID set
        Parameters:
        neighbors - Neighbors to iterate over
        Returns:
        iterator
      • strongNeighbors

        public boolean strongNeighbors​(NumberVector v1,
                                       NumberVector v2,
                                       PCAFilteredResult pca1,
                                       PCAFilteredResult pca2)
        Computes the distance between two given DatabaseObjects according to this distance function. Note, that the first PCA must have equal or more strong eigenvectors than the second PCA.
        Parameters:
        v1 - first DatabaseObject
        v2 - second DatabaseObject
        pca1 - first PCA
        pca2 - second PCA
        Returns:
        true when the two vectors are close enough.
      • weakNeighbors

        public boolean weakNeighbors​(double[] v1,
                                     double[] v2,
                                     PCAFilteredResult pca1,
                                     PCAFilteredResult pca2)
        Computes the distance between two given DatabaseObjects according to this distance function. Note, that the first PCA must have equal or more strong eigenvectors than the second PCA.
        Parameters:
        v1 - first DatabaseObject
        v2 - second DatabaseObject
        pca1 - first PCA
        pca2 - second PCA
        Returns:
        true when the two vectors are close enough.
      • approximatelyLinearDependent

        protected boolean approximatelyLinearDependent​(PCAFilteredResult p1,
                                                       PCAFilteredResult p2)
        Returns true, if the strong eigenvectors of the two specified PCAs span up the same space. Note, that the first PCA must have at least as many strong eigenvectors than the second PCA.
        Parameters:
        p1 - first PCA
        p2 - second PCA
        Returns:
        true, if the strong eigenvectors of the two specified PCAs span up the same space
      • dimensionality

        public int dimensionality​(DBIDRef id)
        Get the correlation dimensionality of a single object.
        Parameters:
        id - Object ID
        Returns:
        correlation dimensionality