Package elki.database.relation
Interface DoubleRelation
-
- All Superinterfaces:
ModifiableRelation<java.lang.Double>
,Relation<java.lang.Double>
- All Known Implementing Classes:
MaterializedDoubleRelation
public interface DoubleRelation extends ModifiableRelation<java.lang.Double>
Interface for double-valued relations.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
DoubleRelation.Consumer
Consumer for (DBIDRef, double) pairs.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description double
doubleValue(DBIDRef id)
Get the representation of an object.default void
forEachDouble(DoubleRelation.Consumer action)
Execute a function for each ID.default java.lang.Double
get(DBIDRef id)
Deprecated.usedoubleValue(elki.database.ids.DBIDRef)
instead.void
insert(DBIDRef id, java.lang.Double val)
Deprecated.useset(DBIDRef, double)
instead.void
set(DBIDRef id, double val)
Set an object representation.-
Methods inherited from interface elki.database.relation.ModifiableRelation
delete
-
Methods inherited from interface elki.database.relation.Relation
forEach, getDataTypeInformation, getDBIDs, getLongName, iterDBIDs, size
-
-
-
-
Method Detail
-
doubleValue
double doubleValue(DBIDRef id)
Get the representation of an object.- Parameters:
id
- Object ID- Returns:
- object instance
-
get
@Deprecated default java.lang.Double get(DBIDRef id)
Deprecated.usedoubleValue(elki.database.ids.DBIDRef)
instead.Description copied from interface:Relation
Get the representation of an object.
-
set
void set(DBIDRef id, double val)
Set an object representation.- Parameters:
id
- Object IDval
- Value
-
insert
@Deprecated void insert(DBIDRef id, java.lang.Double val)
Deprecated.useset(DBIDRef, double)
instead.Description copied from interface:ModifiableRelation
Set (or insert) an object representation.- Specified by:
insert
in interfaceModifiableRelation<java.lang.Double>
- Parameters:
id
- Object IDval
- Value
-
forEachDouble
default void forEachDouble(DoubleRelation.Consumer action)
Execute a function for each ID.- Parameters:
action
- Action to execute
-
-