Class FeatureSelection

    • Constructor Detail

      • FeatureSelection

        public FeatureSelection​(Alphabet dictionary,
                                java.util.BitSet selectedFeatures)
      • FeatureSelection

        public FeatureSelection​(Alphabet dictionary)
    • Method Detail

      • createFromRegex

        public static FeatureSelection createFromRegex​(Alphabet dictionary,
                                                       java.util.regex.Pattern regex)
        Creates a FeatureSelection that includes only those features whose names match a given regex. A static factory method.
        dictionary - A dictionary of fetaure names. Entries must be string.
        regex - Features whose names match this pattern will be included.
        A new FeatureSelection.
      • clone

        public java.lang.Object clone()
        clone in class java.lang.Object
      • cardinality

        public int cardinality()
      • getBitSet

        public java.util.BitSet getBitSet()
      • add

        public void add​(java.lang.Object o)
      • add

        public void add​(int index)
      • remove

        public void remove​(java.lang.Object o)
      • remove

        public void remove​(int index)
      • contains

        public boolean contains​(java.lang.Object o)
      • contains

        public boolean contains​(int index)
      • nextSelectedIndex

        public int nextSelectedIndex​(int index)
      • nextDeselectedIndex

        public int nextDeselectedIndex​(int index)