类 EuclideanDataObject
java.lang.Object
weka.clusterers.forOPTICSAndDBScan.DataObjects.EuclideanDataObject
- 所有已实现的接口:
Serializable
,DataObject
,RevisionHandler
public class EuclideanDataObject
extends Object
implements DataObject, Serializable, RevisionHandler
EuclideanDataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:50:22 PM
$ Revision 1.4 $
- 版本:
- $Revision: 8108 $
- 作者:
- Matthias Schubert (schubert@dbs.ifi.lmu.de), Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
- 另请参阅:
-
字段概要
从接口继承的字段 weka.clusterers.forOPTICSAndDBScan.DataObjects.DataObject
NOISE, UNCLASSIFIED, UNDEFINED
-
构造器概要
构造器构造器说明EuclideanDataObject
(Instance originalInstance, String key, Database database) Constructs a new DataObject. -
方法概要
修饰符和类型方法说明double
distance
(DataObject dataObject) Calculates the euclidian-distance between dataObject and this.dataObjectboolean
equals
(DataObject dataObject) Compares two DataObjects in respect to their attribute-valuesint
Returns the clusterID, to which this DataObject belongs todouble
Returns the coreDistance for this dataObjectReturns the original instancegetKey()
Returns the key for this DataObjectdouble
Returns the reachabilityDistance for this dataObjectReturns the revision string.boolean
Gives information about the status of a dataObjectvoid
setClusterLabel
(int clusterID) Sets the clusterID (cluster), to which this DataObject belongs tovoid
setCoreDistance
(double c_dist) Sets a new coreDistance for this dataObjectvoid
Sets the key for this DataObjectvoid
setProcessed
(boolean processed) Marks this dataObject as processedvoid
setReachabilityDistance
(double r_dist) Sets a new reachability-distance for this dataObjecttoString()
-
构造器详细资料
-
EuclideanDataObject
Constructs a new DataObject. The original instance is kept as instance-variable- 参数:
originalInstance
- the original instance
-
-
方法详细资料
-
equals
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
Calculates the euclidian-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 euclidian-distance between dataObject and this.dataObject
-
getInstance
Returns the original instance- 指定者:
getInstance
在接口中DataObject
- 返回:
- originalInstance
-
getKey
Returns the key for this DataObject- 指定者:
getKey
在接口中DataObject
- 返回:
- key
-
setKey
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
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-