Package adams.data.binning.operation
Class Wrapping.IndexedBinValueExtractor<T>
- java.lang.Object
-
- adams.data.binning.operation.Wrapping.IndexedBinValueExtractor<T>
-
- Type Parameters:
T- the payload type
- All Implemented Interfaces:
Wrapping.BinValueExtractor<T>,Serializable
- Enclosing class:
- Wrapping
public static class Wrapping.IndexedBinValueExtractor<T> extends Object implements Wrapping.BinValueExtractor<T>, Serializable
Simply keeps track of the number of objects encountered and returns that count as bin value.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_Indexfor keeping track of the index.
-
Constructor Summary
Constructors Constructor Description IndexedBinValueExtractor()Initializes the index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleextractBinValue(T object)Extracts the numeric value to use for binning from the object.
-
-
-
Method Detail
-
extractBinValue
public double extractBinValue(T object)
Extracts the numeric value to use for binning from the object.- Specified by:
extractBinValuein interfaceWrapping.BinValueExtractor<T>- Parameters:
object- the object to process- Returns:
- the extracted value
-
-