类 SequentialDatabase

java.lang.Object
weka.clusterers.forOPTICSAndDBScan.Databases.SequentialDatabase
所有已实现的接口:
Serializable, Database, RevisionHandler

public class SequentialDatabase extends Object implements Database, Serializable, RevisionHandler

SequentialDatabase.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 20, 2004
Time: 1:23:38 PM
$ Revision 1.4 $

版本:
$Revision: 1.4 $
作者:
Matthias Schubert (schubert@dbs.ifi.lmu.de), Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
另请参阅:
  • 构造器详细资料

    • SequentialDatabase

      public SequentialDatabase(Instances instances)
      Constructs a new sequential database and holds the original instances
      参数:
      instances -
  • 方法详细资料

    • getDataObject

      public DataObject getDataObject(String key)
      Select a dataObject from the database
      指定者:
      getDataObject 在接口中 Database
      参数:
      key - The key that is associated with the dataObject
      返回:
      dataObject
    • setMinMaxValues

      public void setMinMaxValues()
      Sets the minimum and maximum values for each attribute in different arrays by walking through every DataObject of the database
      指定者:
      setMinMaxValues 在接口中 Database
    • getAttributeMinValues

      public double[] getAttributeMinValues()
      Returns the array of minimum-values for each attribute
      指定者:
      getAttributeMinValues 在接口中 Database
      返回:
      attributeMinValues
    • getAttributeMaxValues

      public double[] getAttributeMaxValues()
      Returns the array of maximum-values for each attribute
      指定者:
      getAttributeMaxValues 在接口中 Database
      返回:
      attributeMaxValues
    • epsilonRangeQuery

      public List epsilonRangeQuery(double epsilon, DataObject queryDataObject)
      Performs an epsilon range query for this dataObject
      指定者:
      epsilonRangeQuery 在接口中 Database
      参数:
      epsilon - Specifies the range for the query
      queryDataObject - The dataObject that is used as query-object for epsilon range query
      返回:
      List with all the DataObjects that are within the specified range
    • k_nextNeighbourQuery

      public List k_nextNeighbourQuery(int k, double epsilon, DataObject dataObject)
      Emits the k next-neighbours and performs an epsilon-range-query at the parallel. The returned list contains two elements: At index=0 --> list with all k next-neighbours; At index=1 --> list with all dataObjects within epsilon;
      指定者:
      k_nextNeighbourQuery 在接口中 Database
      参数:
      k - number of next neighbours
      epsilon - Specifies the range for the query
      dataObject - the start object
      返回:
      list with the k-next neighbours (PriorityQueueElements) and a list with candidates from the epsilon-range-query (EpsilonRange_ListElements)
    • coreDistance

      public List coreDistance(int minPoints, double epsilon, DataObject dataObject)
      Calculates the coreDistance for the specified DataObject. The returned list contains three elements: At index=0 --> list with all k next-neighbours; At index=1 --> list with all dataObjects within epsilon; At index=2 --> coreDistance as Double-value
      指定者:
      coreDistance 在接口中 Database
      参数:
      minPoints - minPoints-many neighbours within epsilon must be found to have a non-undefined coreDistance
      epsilon - Specifies the range for the query
      dataObject - Calculate coreDistance for this dataObject
      返回:
      list with the k-next neighbours (PriorityQueueElements) and a list with candidates from the epsilon-range-query (EpsilonRange_ListElements) and the double-value for the calculated coreDistance
    • size

      public int size()
      Returns the size of the database (the number of dataObjects in the database)
      指定者:
      size 在接口中 Database
      返回:
      size
    • keyIterator

      public Iterator keyIterator()
      Returns an iterator over all the keys
      指定者:
      keyIterator 在接口中 Database
      返回:
      iterator
    • dataObjectIterator

      public Iterator dataObjectIterator()
      Returns an iterator over all the dataObjects in the database
      指定者:
      dataObjectIterator 在接口中 Database
      返回:
      iterator
    • contains

      public boolean contains(DataObject dataObject_Query)
      Tests if the database contains the dataObject_Query
      指定者:
      contains 在接口中 Database
      参数:
      dataObject_Query - The query-object
      返回:
      true if the database contains dataObject_Query, else false
    • insert

      public void insert(DataObject dataObject)
      Inserts a new dataObject into the database
      指定者:
      insert 在接口中 Database
      参数:
      dataObject -
    • getInstances

      public Instances getInstances()
      Returns the original instances delivered from WEKA
      指定者:
      getInstances 在接口中 Database
      返回:
      instances
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision