Package org.aksw.palmetto.data
Class CountedSubsets
java.lang.Object
org.aksw.palmetto.data.CountedSubsets
This class contains the segmentations as defined in the
SegmentationDefinition class and word counts for a word set.- Author:
- m.roeder
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[][]Defines for every W' insegmentsan array of W* subsets.int[]The counts of the single subsets.int[]Defines the W' of the subset pairs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[][]int[]int[]voidsetConditions(int[][] conditions)voidsetCounts(int[] counts)voidsetSegments(int[] segments)
-
Field Details
-
segments
public int[] segmentsDefines the W' of the subset pairs -
conditions
public int[][] conditionsDefines for every W' insegmentsan array of W* subsets. -
counts
public int[] countsThe 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 0counts[1]contains the count for word #1counts[2]contains the count for word #2counts[3]contains the count for a subset comprising word #1 and word #2- ...
-
-
Constructor Details
-
CountedSubsets
public CountedSubsets(int[] segments, int[][] conditions, int[] counts)
-
-
Method Details
-
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
-