public class DomainShareMaterialized extends java.lang.Object implements DomainShare
Constructor and Description |
---|
DomainShareMaterialized(java.lang.String[][] rawHierarchy,
java.lang.String[] encodedValues,
int[][] encodedHierarchy)
Creates a new set of domain shares derived from the given attribute.
|
Modifier and Type | Method and Description |
---|---|
DomainShareMaterialized |
clone()
Clones the share
|
double |
getDomainSize()
Returns the size of the domain.
|
double |
getShare(int value,
int level)
Returns the share of the given value.
|
public DomainShareMaterialized(java.lang.String[][] rawHierarchy, java.lang.String[] encodedValues, int[][] encodedHierarchy)
rawHierarchy
- encodedValues
- encodedHierarchy
- public DomainShareMaterialized clone()
DomainShare
clone
in interface DomainShare
clone
in class java.lang.Object
public double getDomainSize()
getDomainSize
in interface DomainShare
public double getShare(int value, int level)
getShare
in interface DomainShare
value
- level
-