Class DoubleIntegerDBIDPair

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int id
      The DB id.
      (package private) double value
      The double value.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DoubleIntegerDBIDPair​(double value, int id)
      Constructor.
    • Field Detail

      • value

        double value
        The double value.
      • id

        int id
        The DB id.
    • Constructor Detail

      • DoubleIntegerDBIDPair

        protected DoubleIntegerDBIDPair​(double value,
                                        int id)
        Constructor.
        Parameters:
        value - Double value
        id - DBID
    • Method Detail

      • internalGetIndex

        public int internalGetIndex()
        Description copied from interface: DBIDRef
        Internal only: Get the internal index.

        NOT FOR PUBLIC USE - ELKI Optimization engine only.

        Specified by:
        internalGetIndex in interface DBIDRef
        Specified by:
        internalGetIndex in interface IntegerDBIDRef
        Returns:
        Internal index
      • doubleValue

        public double doubleValue()
        Description copied from interface: DoubleDBIDPair
        Get the double value of the pair.
        Specified by:
        doubleValue in interface DoubleDBIDPair
        Returns:
        Double
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object