Class COPACNeighborPredicate.COPACModel

  • All Implemented Interfaces:
    DBIDs, SetDBIDs
    Enclosing class:
    COPACNeighborPredicate

    public static class COPACNeighborPredicate.COPACModel
    extends java.lang.Object
    implements SetDBIDs
    Model used by COPAC for core point property.
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int cdim
      Correlation dimensionality.
      (package private) SetDBIDs ids
      Neighbor ids.
    • Constructor Summary

      Constructors 
      Constructor Description
      COPACModel​(int cdim, SetDBIDs ids)
      COPAC model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(DBIDRef o)
      Test whether an ID is contained.
      boolean isEmpty()
      Test for an empty DBID collection.
      DBIDIter iter()
      Get a DBID iterator (a more efficient API).
      int size()
      Retrieve the collection / data size.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface elki.database.ids.DBIDs

        forEach
    • Field Detail

      • cdim

        int cdim
        Correlation dimensionality.
    • Constructor Detail

      • COPACModel

        public COPACModel​(int cdim,
                          SetDBIDs ids)
        COPAC model.
        Parameters:
        cdim - Correlation dimensionality
        ids - Neighbor ids
    • Method Detail

      • iter

        public DBIDIter iter()
        Description copied from interface: DBIDs
        Get a DBID iterator (a more efficient API).

        Example:

         
         for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
           NumberVector vec = relation.get(iter); // iter is a temporary object reference
         }
         
         
        Specified by:
        iter in interface DBIDs
        Returns:
        iterator
      • size

        public int size()
        Description copied from interface: DBIDs
        Retrieve the collection / data size.
        Specified by:
        size in interface DBIDs
        Returns:
        collection size
      • contains

        public boolean contains​(DBIDRef o)
        Description copied from interface: DBIDs
        Test whether an ID is contained.
        Specified by:
        contains in interface DBIDs
        Parameters:
        o - object to test
        Returns:
        true when contained
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: DBIDs
        Test for an empty DBID collection.
        Specified by:
        isEmpty in interface DBIDs
        Returns:
        true when empty.