Class Subset<T>

    • Field Detail

      • m_Data

        protected List<T> m_Data
        the data.
      • m_OriginalIndices

        protected gnu.trove.list.TIntList m_OriginalIndices
        the original indices (can be null).
    • Constructor Detail

      • Subset

        public Subset​(List<T> data,
                      gnu.trove.list.TIntList originalIndices)
        Initializes the container.
        Parameters:
        data - the data
        originalIndices - the indices
    • Method Detail

      • getData

        public List<T> getData()
        Returns the data.
        Returns:
        the data
      • getOriginalIndices

        public gnu.trove.list.TIntList getOriginalIndices()
        Returns the original indices.
        Returns:
        the indices
      • extractIndicesAndBinnable

        public static <T> com.github.fracpete.javautils.struct.Struct2<gnu.trove.list.TIntList,​List<Binnable<T>>> extractIndicesAndBinnable​(Subset<Binnable<BinnableGroup<T>>> subset)
        Extracts row indices and binnable list from grouped subset.
        Parameters:
        subset - the subset to process
        Returns:
        the indices and list