Package adams.data.binning
Class BinnableDataset.GroupedClassValueBinValueExtractor
- java.lang.Object
-
- adams.data.binning.BinnableDataset.GroupedClassValueBinValueExtractor
-
- All Implemented Interfaces:
Wrapping.BinValueExtractor<BinnableGroup<DataRow>>
,Serializable
- Enclosing class:
- BinnableDataset
public static class BinnableDataset.GroupedClassValueBinValueExtractor extends Object implements Wrapping.BinValueExtractor<BinnableGroup<DataRow>>, Serializable
Uses the class value of the first data row in the group as bin value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_Index
the column index.
-
Constructor Summary
Constructors Constructor Description GroupedClassValueBinValueExtractor(int index)
Initializes the extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
extractBinValue(BinnableGroup<DataRow> object)
Extracts the numeric value to use for binning from the object.
-
-
-
Method Detail
-
extractBinValue
public double extractBinValue(BinnableGroup<DataRow> object)
Extracts the numeric value to use for binning from the object.- Specified by:
extractBinValue
in interfaceWrapping.BinValueExtractor<BinnableGroup<DataRow>>
- Parameters:
object
- the object to process- Returns:
- the extracted value
-
-