Interface TupleDesc<T extends TupleDesc>

All Superinterfaces:
Serializable
All Known Implementing Classes:
Histogram_F64, NccFeature, TupleDesc_B, TupleDesc_F32, TupleDesc_F64, TupleDesc_I8, TupleDesc_S8, TupleDesc_U8

public interface TupleDesc<T extends TupleDesc> extends Serializable
Base class for tuple based feature descriptors
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Creates a copy of this description
    double
    getDouble(int index)
    Returns the value of a tuple's element as a double.
    boolean
    isEquals(T tuple)
    Returns true if the type data structure are identical
     
    void
    setTo(T source)
    Sets this tuple to be the same as the provided tuple
    int
    Number of elements in the tuple.
  • Method Details

    • setTo

      void setTo(T source)
      Sets this tuple to be the same as the provided tuple
      Parameters:
      source - The tuple which this one is to become a copy of.
    • getDouble

      double getDouble(int index)
      Returns the value of a tuple's element as a double. In general this function should not be used because of how inefficient it is.
      Parameters:
      index - Which element
      Returns:
      Element's value as a double
    • isEquals

      boolean isEquals(T tuple)
      Returns true if the type data structure are identical
    • size

      int size()
      Number of elements in the tuple.
      Returns:
      Number of elements in the tuple
    • copy

      default T copy()
      Creates a copy of this description
      Returns:
      Copy
    • newInstance

      T newInstance()