类 ManhattanDataObject

java.lang.Object
weka.clusterers.forOPTICSAndDBScan.DataObjects.ManhattanDataObject
所有已实现的接口:
Serializable, DataObject, RevisionHandler

public class ManhattanDataObject extends Object implements DataObject, Serializable, RevisionHandler

ManhattanDataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:50:22 PM
$ Revision 1.4 $

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

    • ManhattanDataObject

      public ManhattanDataObject(Instance originalInstance, String key, Database database)
      Constructs a new DataObject. The original instance is kept as instance-variable
      参数:
      originalInstance - the original instance
  • 方法详细资料

    • equals

      public boolean equals(DataObject dataObject)
      Compares two DataObjects in respect to their attribute-values
      指定者:
      equals 在接口中 DataObject
      参数:
      dataObject - The DataObject, that is compared with this.dataObject; now assumed to be of the same type and with the same structure
      返回:
      Returns true, if the DataObjects correspond in each value, else returns false
    • distance

      public double distance(DataObject dataObject)
      Calculates the manhattan-distance between dataObject and this.dataObject
      指定者:
      distance 在接口中 DataObject
      参数:
      dataObject - The DataObject, that is used for distance-calculation with this.dataObject now assumed to be of the same type and with the same structure
      返回:
      double-value The manhattan-distance between dataObject and this.dataObject NaN, if the computation could not be performed
    • getInstance

      public Instance getInstance()
      Returns the original instance
      指定者:
      getInstance 在接口中 DataObject
      返回:
      originalInstance
    • getKey

      public String getKey()
      Returns the key for this DataObject
      指定者:
      getKey 在接口中 DataObject
      返回:
      key
    • setKey

      public void setKey(String key)
      Sets the key for this DataObject
      指定者:
      setKey 在接口中 DataObject
      参数:
      key - The key is represented as string
    • setClusterLabel

      public void setClusterLabel(int clusterID)
      Sets the clusterID (cluster), to which this DataObject belongs to
      指定者:
      setClusterLabel 在接口中 DataObject
      参数:
      clusterID - Number of the Cluster
    • getClusterLabel

      public int getClusterLabel()
      Returns the clusterID, to which this DataObject belongs to
      指定者:
      getClusterLabel 在接口中 DataObject
      返回:
      clusterID
    • setProcessed

      public void setProcessed(boolean processed)
      Marks this dataObject as processed
      指定者:
      setProcessed 在接口中 DataObject
      参数:
      processed - True, if the DataObject has been already processed, false else
    • isProcessed

      public boolean isProcessed()
      Gives information about the status of a dataObject
      指定者:
      isProcessed 在接口中 DataObject
      返回:
      True, if this dataObject has been processed, else false
    • setCoreDistance

      public void setCoreDistance(double c_dist)
      Sets a new coreDistance for this dataObject
      指定者:
      setCoreDistance 在接口中 DataObject
      参数:
      c_dist - coreDistance
    • getCoreDistance

      public double getCoreDistance()
      Returns the coreDistance for this dataObject
      指定者:
      getCoreDistance 在接口中 DataObject
      返回:
      coreDistance
    • setReachabilityDistance

      public void setReachabilityDistance(double r_dist)
      Sets a new reachability-distance for this dataObject
      指定者:
      setReachabilityDistance 在接口中 DataObject
    • getReachabilityDistance

      public double getReachabilityDistance()
      Returns the reachabilityDistance for this dataObject
      指定者:
      getReachabilityDistance 在接口中 DataObject
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • getRevision

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