Interface InstanceData

    • Method Detail

      • numAttributes

        int numAttributes()
        Num attributes.
        Returns:
        the int
      • value

        double value​(int instAttIndex)
        Value.
        Parameters:
        instAttIndex - the inst att index
        Returns:
        the double
      • isMissing

        boolean isMissing​(int instAttIndex)
        Checks if is missing.
        Parameters:
        instAttIndex - the inst att index
        Returns:
        true, if is missing
      • numValues

        int numValues()
        Num values.
        Returns:
        the int
      • index

        int index​(int i)
        Index.
        Parameters:
        i - the i
        Returns:
        the int
      • valueSparse

        double valueSparse​(int i)
        Value sparse.
        Parameters:
        i - the i
        Returns:
        the double
      • isMissingSparse

        boolean isMissingSparse​(int p1)
        Checks if is missing sparse.
        Parameters:
        p1 - the p1
        Returns:
        true, if is missing sparse
      • toDoubleArray

        double[] toDoubleArray()
        To double array.
        Returns:
        the double[]
      • setValue

        void setValue​(int m_numAttributes,
                      double d)
        Sets the value.
        Parameters:
        m_numAttributes - the m_num attributes
        d - the d
      • deleteAttributeAt

        void deleteAttributeAt​(int index)
        Deletes an attribute.
        Parameters:
        index - the indes
      • insertAttributeAt

        void insertAttributeAt​(int index)
        Inserts an attribute.
        Parameters:
        index - the indes
      • copy

        InstanceData copy()
        Produces a shallow copy of this instance data.
        Returns:
        the shallow copy