Package adams.data.binning
Class BinnableInstances.StringAttributeGroupExtractor
- java.lang.Object
-
- adams.data.binning.BinnableInstances.StringAttributeGroupExtractor
-
- All Implemented Interfaces:
Grouping.GroupExtractor<weka.core.Instance>
,Serializable
- Enclosing class:
- BinnableInstances
public static class BinnableInstances.StringAttributeGroupExtractor extends Object implements Grouping.GroupExtractor<weka.core.Instance>, Serializable
Group extractor for string attributes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringAttributeGroupExtractor(int index, String regExp, String group)
Initializes the extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
extractGroup(Binnable<weka.core.Instance> item)
Extracts the group from the binnable object.
-
-
-
Method Detail
-
extractGroup
public String extractGroup(Binnable<weka.core.Instance> item)
Extracts the group from the binnable object.- Specified by:
extractGroup
in interfaceGrouping.GroupExtractor<weka.core.Instance>
- Parameters:
item
- the item to extract the group from- Returns:
- the extracted group
-
-