Package edu.uic.ncdm.venn.data
Class VennData
java.lang.Object
edu.uic.ncdm.venn.data.VennData
class representing the class combinations and corresponding weights
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[]weights for class combinations specified indata[*][0](if isAreas istrue, unused otherwise)String[][]data is either a list of pairs of class names which all have the weight 1 (isAreas isfalse) or a list of class combination specifications at [][0] (names are separated by~) with [][1] unused (null, isAreas istrue)booleaniftruethen areas is used anddata[*][1]is unused, otherwise all areas are implicitly 1 and data contains class pairs -
Constructor Summary
ConstructorsConstructorDescriptioncreate Venn data by specifying raw contents - no consistency checks are made so it is the responsibility of the caller to make sure the content combination is valid.create Venn data from a list of strings specifying the classes and associated areas.create Venn data from a list of pairs (all will have equal area). -
Method Summary
-
Field Details
-
isAreas
public boolean isAreasiftruethen areas is used anddata[*][1]is unused, otherwise all areas are implicitly 1 and data contains class pairs -
areas
public double[] areasweights for class combinations specified indata[*][0](if isAreas istrue, unused otherwise) -
data
data is either a list of pairs of class names which all have the weight 1 (isAreas isfalse) or a list of class combination specifications at [][0] (names are separated by~) with [][1] unused (null, isAreas istrue)
-
-
Constructor Details
-
VennData
create Venn data by specifying raw contents - no consistency checks are made so it is the responsibility of the caller to make sure the content combination is valid. -
VennData
create Venn data from a list of strings specifying the classes and associated areas.- Parameters:
data- list of string specifying classes/combinations (names must be separated by~)areas- areas associated with the classes
-
VennData
create Venn data from a list of pairs (all will have equal area).- Parameters:
pair1- first item of each pairpair2- second item of each pair
-