public interface Database
Database.java
Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht, Matthias Schubert
Date: Aug 20, 2004
Time: 1:03:43 PM
$ Revision 1.4 $
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DataObject dataObject_Query)
Tests if the database contains the dataObject_Query
|
java.util.List |
coreDistance(int minPoints,
double epsilon,
DataObject dataObject)
Calculates the coreDistance for the specified DataObject.
|
java.util.Iterator |
dataObjectIterator()
Returns an iterator over all the dataObjects in the database
|
java.util.List |
epsilonRangeQuery(double epsilon,
DataObject queryDataObject)
Performs an epsilon range query for this dataObject
|
double[] |
getAttributeMaxValues()
Returns the array of maximum-values for each attribute
|
double[] |
getAttributeMinValues()
Returns the array of minimum-values for each attribute
|
DataObject |
getDataObject(java.lang.String key)
Select a dataObject from the database
|
Instances |
getInstances()
Returns the original instances delivered from WEKA
|
void |
insert(DataObject dataObject)
Inserts a new dataObject into the database
|
java.util.List |
k_nextNeighbourQuery(int k,
double epsilon,
DataObject dataObject)
Emits the k next-neighbours and performs an epsilon-range-query at the parallel.
|
java.util.Iterator |
keyIterator()
Returns an iterator over all the keys
|
void |
setMinMaxValues()
Sets the minimum and maximum values for each attribute in different arrays
by walking through every DataObject of the database
|
int |
size()
Returns the size of the database (the number of dataObjects in the database)
|
DataObject getDataObject(java.lang.String key)
key
- The key that is associated with the dataObjectint size()
java.util.Iterator keyIterator()
java.util.Iterator dataObjectIterator()
boolean contains(DataObject dataObject_Query)
dataObject_Query
- The query-objectvoid insert(DataObject dataObject)
dataObject
- Instances getInstances()
void setMinMaxValues()
double[] getAttributeMinValues()
double[] getAttributeMaxValues()
java.util.List epsilonRangeQuery(double epsilon, DataObject queryDataObject)
epsilon
- Specifies the range for the queryqueryDataObject
- The dataObject that is used as query-object for epsilon range queryjava.util.List k_nextNeighbourQuery(int k, double epsilon, DataObject dataObject)
k
- number of next neighboursepsilon
- Specifies the range for the querydataObject
- the start objectjava.util.List coreDistance(int minPoints, double epsilon, DataObject dataObject)
minPoints
- minPoints-many neighbours within epsilon must be found to have a non-undefined coreDistanceepsilon
- Specifies the range for the querydataObject
- Calculate coreDistance for this dataObject