Package org.aksw.palmetto.data
Class CountedSubsets
- java.lang.Object
-
- org.aksw.palmetto.data.CountedSubsets
-
public class CountedSubsets extends Object
This class contains the segmentations as defined in theSegmentationDefinitionclass and word counts for a word set.- Author:
- m.roeder
-
-
Field Summary
Fields Modifier and Type Field Description int[][]conditionsDefines for every W' insegmentsan array of W* subsets.int[]countsThe counts of the single subsets.int[]segmentsDefines the W' of the subset pairs
-
Constructor Summary
Constructors Constructor Description CountedSubsets(int[] segments, int[][] conditions, int[] counts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[][]getConditions()int[]getCounts()int[]getSegments()voidsetConditions(int[][] conditions)voidsetCounts(int[] counts)voidsetSegments(int[] segments)
-
-
-
Field Detail
-
segments
public int[] segments
Defines the W' of the subset pairs
-
conditions
public int[][] conditions
Defines for every W' insegmentsan 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 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- ...
-
-
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
-
-