Class Subset<T>
- java.lang.Object
-
- adams.data.splitgenerator.generic.core.Subset<T>
-
- Type Parameters:
T
- the type of wrapped data
- All Implemented Interfaces:
Serializable
public class Subset<T> extends Object implements Serializable
Container for a dataset subset.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<T>
m_Data
the data.protected gnu.trove.list.TIntList
m_OriginalIndices
the original indices (can be null).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<T>
getData()
Returns the data.gnu.trove.list.TIntList
getOriginalIndices()
Returns the original indices.
-
-
-
Method Detail
-
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
-
-