|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.clusterers.forOPTICSAndDBScan.DataObjects.EuclidianDataObject
public class EuclidianDataObject
EuclidianDataObject.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 19, 2004
Time: 5:50:22 PM
$ Revision 1.4 $
| Field Summary |
|---|
| Fields inherited from interface weka.clusterers.forOPTICSAndDBScan.DataObjects.DataObject |
|---|
NOISE, UNCLASSIFIED, UNDEFINED |
| Constructor Summary | |
|---|---|
EuclidianDataObject(Instance originalInstance,
java.lang.String key,
Database database)
Constructs a new DataObject. |
|
| Method Summary | |
|---|---|
double |
distance(DataObject dataObject)
Calculates the euclidian-distance between dataObject and this.dataObject |
boolean |
equals(DataObject dataObject)
Compares two DataObjects in respect to their attribute-values |
int |
getClusterLabel()
Returns the clusterID, to which this DataObject belongs to |
double |
getCoreDistance()
Returns the coreDistance for this dataObject |
Instance |
getInstance()
Returns the original instance |
java.lang.String |
getKey()
Returns the key for this DataObject |
double |
getReachabilityDistance()
Returns the reachabilityDistance for this dataObject |
java.lang.String |
getRevision()
Returns the revision string. |
boolean |
isProcessed()
Gives information about the status of a dataObject |
void |
setClusterLabel(int clusterID)
Sets the clusterID (cluster), to which this DataObject belongs to |
void |
setCoreDistance(double c_dist)
Sets a new coreDistance for this dataObject |
void |
setKey(java.lang.String key)
Sets the key for this DataObject |
void |
setProcessed(boolean processed)
Marks this dataObject as processed |
void |
setReachabilityDistance(double r_dist)
Sets a new reachability-distance for this dataObject |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EuclidianDataObject(Instance originalInstance,
java.lang.String key,
Database database)
originalInstance - the original instance| Method Detail |
|---|
public boolean equals(DataObject dataObject)
equals in interface DataObjectdataObject - The DataObject, that is compared with this.dataObject
public double distance(DataObject dataObject)
distance in interface DataObjectdataObject - The DataObject, that is used for distance-calculation with this.dataObject
public Instance getInstance()
getInstance in interface DataObjectpublic java.lang.String getKey()
getKey in interface DataObjectpublic void setKey(java.lang.String key)
setKey in interface DataObjectkey - The key is represented as stringpublic void setClusterLabel(int clusterID)
setClusterLabel in interface DataObjectclusterID - Number of the Clusterpublic int getClusterLabel()
getClusterLabel in interface DataObjectpublic void setProcessed(boolean processed)
setProcessed in interface DataObjectprocessed - True, if the DataObject has been already processed, false elsepublic boolean isProcessed()
isProcessed in interface DataObjectpublic void setCoreDistance(double c_dist)
setCoreDistance in interface DataObjectc_dist - coreDistancepublic double getCoreDistance()
getCoreDistance in interface DataObjectpublic void setReachabilityDistance(double r_dist)
setReachabilityDistance in interface DataObjectpublic double getReachabilityDistance()
getReachabilityDistance in interface DataObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||