Class EpsilonRange_ListElement
java.lang.Object
weka.clusterers.forOPTICSAndDBScan.Utils.EpsilonRange_ListElement
- All Implemented Interfaces:
RevisionHandler
EpsilonRange_ListElement.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Sep 7, 2004
Time: 2:12:34 PM
$ Revision 1.4 $
- Version:
- $Revision: 1.3 $
- Author:
- Matthias Schubert (schubert@dbs.ifi.lmu.de), Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de), Rainer Holzmann (holzmann@cip.ifi.lmu.de)
-
Constructor Summary
ConstructorsConstructorDescriptionEpsilonRange_ListElement
(double distance, DataObject dataObject) Constructs a new Element that is stored in the ArrayList which is built in the k_nextNeighbourQuery-method from a specified database. -
Method Summary
Modifier and TypeMethodDescriptionReturns this dataObjectdouble
Returns the distance that was calulcated for this dataObject (The distance between this dataObject and the dataObject for which an epsilon-range-query was performed.)Returns the revision string.
-
Constructor Details
-
EpsilonRange_ListElement
Constructs a new Element that is stored in the ArrayList which is built in the k_nextNeighbourQuery-method from a specified database. This structure is chosen to deliver not only the DataObjects that are within the epsilon-range but also deliver the distances that were calculated. This reduces the amount of distance-calculations within some data-mining-algorithms.- Parameters:
distance
- The calculated distance for this dataObjectdataObject
- A dataObject that is within the epsilon-range
-
-
Method Details
-
getDistance
public double getDistance()Returns the distance that was calulcated for this dataObject (The distance between this dataObject and the dataObject for which an epsilon-range-query was performed.)- Returns:
- distance
-
getDataObject
Returns this dataObject- Returns:
- dataObject
-
getRevision
Returns the revision string.- Specified by:
getRevision
in interfaceRevisionHandler
- Returns:
- the revision
-