Class FeatureConjunction

  • All Implemented Interfaces:
    java.io.Serializable

    public class FeatureConjunction
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • FeatureConjunction

        public FeatureConjunction​(java.lang.String name,
                                  Alphabet dictionary,
                                  int[] features,
                                  boolean[] negations,
                                  boolean checkSorted,
                                  boolean copyFeatures,
                                  boolean copyNegations)
        If negations[i] is true, insist that the feature has non-zero value; if false, insist that it has zero value. Note: Does not check to make sure that it hasn't already been added. If negations[] is null, then assume all negations[i] are true.
      • FeatureConjunction

        public FeatureConjunction​(java.lang.String name,
                                  Alphabet dictionary,
                                  int[] features,
                                  boolean[] negations,
                                  boolean checkSorted)
      • FeatureConjunction

        public FeatureConjunction​(java.lang.String name,
                                  Alphabet dictionary,
                                  int[] features,
                                  boolean[] negations)
      • FeatureConjunction

        public FeatureConjunction​(Alphabet dictionary,
                                  int[] features,
                                  boolean[] negations)
      • FeatureConjunction

        public FeatureConjunction​(Alphabet dictionary,
                                  int[] features)
    • Method Detail

      • isValidConjunction

        public static boolean isValidConjunction​(int[] features)
      • getName

        public static java.lang.String getName​(Alphabet dictionary,
                                               int[] features,
                                               boolean[] negations)
      • getName

        public static java.lang.String getName​(Alphabet dictionary,
                                               int[] features)
      • featuresOverlap

        public static boolean featuresOverlap​(Alphabet dictionary,
                                              int feature1,
                                              int feature2)
      • getName

        public static java.lang.String getName​(Alphabet dictionary,
                                               int feature1,
                                               int feature2)
      • getFeatureIndices

        public static int[] getFeatureIndices​(Alphabet dictionary,
                                              java.lang.String featureConjunctionName)
      • getIndex

        public int getIndex()