@Alias(value="de.lmu.ifi.dbs.elki.datasource.filter.ClassLabelFromPatternFilter") public class ClassLabelFromPatternFilter extends AbstractStreamFilter
Modifier and Type | Class and Description |
---|---|
static class |
ClassLabelFromPatternFilter.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
(package private) it.unimi.dsi.fastutil.ints.IntArrayList |
labelcols
Bitset of label columns
|
(package private) BundleMeta |
meta
Current meta data
|
(package private) SimpleClassLabel |
negative
Label to return for negative matches.
|
(package private) java.util.regex.Pattern |
pattern
Matching pattern.
|
(package private) SimpleClassLabel |
positive
Label to return for positive matches.
|
source
Constructor and Description |
---|
ClassLabelFromPatternFilter(java.util.regex.Pattern pattern,
SimpleClassLabel positive,
SimpleClassLabel negative)
Constructor.
|
ClassLabelFromPatternFilter(java.util.regex.Pattern pattern,
java.lang.String positive,
java.lang.String negative)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
data(int rnum)
Access a particular object and representation.
|
BundleMeta |
getMeta()
Get the current meta data.
|
BundleStreamSource.Event |
nextEvent()
Get the next event
|
asMultipleObjectsBundle, assignDBID, filter, hasDBIDs, init, toString
BundleMeta meta
it.unimi.dsi.fastutil.ints.IntArrayList labelcols
SimpleClassLabel positive
SimpleClassLabel negative
java.util.regex.Pattern pattern
public ClassLabelFromPatternFilter(java.util.regex.Pattern pattern, java.lang.String positive, java.lang.String negative)
pattern
- Pattern for matchingpositive
- Positive labelnegative
- Negative labelpublic ClassLabelFromPatternFilter(java.util.regex.Pattern pattern, SimpleClassLabel positive, SimpleClassLabel negative)
pattern
- Pattern for matchingpositive
- Positive labelnegative
- Negative labelpublic BundleMeta getMeta()
BundleStreamSource
public java.lang.Object data(int rnum)
BundleStreamSource
rnum
- Representation numberpublic BundleStreamSource.Event nextEvent()
BundleStreamSource
Copyright © 2019 ELKI Development Team. License information.