Class CountedSubsets


  • public class CountedSubsets
    extends Object
    This class contains the segmentations as defined in the SegmentationDefinition class and word counts for a word set.
    Author:
    m.roeder
    • Field Detail

      • segments

        public int[] segments
        Defines the W' of the subset pairs
      • conditions

        public int[][] conditions
        Defines for every W' in segments an array of W* subsets.
      • counts

        public int[] counts
        The counts of the single subsets. The bits of their index are the IDs of the words that are part of the subset, e.g.,
        • counts[0] is always 0
        • counts[1] contains the count for word #1
        • counts[2] contains the count for word #2
        • counts[3] contains the count for a subset comprising word #1 and word #2
        • ...
    • Constructor Detail

      • CountedSubsets

        public CountedSubsets​(int[] segments,
                              int[][] conditions,
                              int[] counts)
    • Method Detail

      • getSegments

        public int[] getSegments()
        Returns:
        the segments
      • setSegments

        public void setSegments​(int[] segments)
        Parameters:
        segments - the segments to set
      • getConditions

        public int[][] getConditions()
        Returns:
        the conditions
      • setConditions

        public void setConditions​(int[][] conditions)
        Parameters:
        conditions - the conditions to set
      • getCounts

        public int[] getCounts()
        Returns:
        the counts
      • setCounts

        public void setCounts​(int[] counts)
        Parameters:
        counts - the counts to set