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 interfaceDoubleRelation.ConsumerConsumer for (DBIDRef, double) pairs.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description doubledoubleValue(DBIDRef id)Get the representation of an object.default voidforEachDouble(DoubleRelation.Consumer action)Execute a function for each ID.default java.lang.Doubleget(DBIDRef id)Deprecated.usedoubleValue(elki.database.ids.DBIDRef)instead.voidinsert(DBIDRef id, java.lang.Double val)Deprecated.useset(DBIDRef, double)instead.voidset(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:RelationGet 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:ModifiableRelationSet (or insert) an object representation.- Specified by:
insertin 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
-
-