Klasse DomainShareMaterialized

java.lang.Object
org.deidentifier.arx.metric.v2.DomainShareMaterialized
Alle implementierten Schnittstellen:
Serializable, DomainShare

public class DomainShareMaterialized extends Object implements DomainShare
This class represents a set of domain shares for an attribute. The shares are derived from a materialized generalization hierarchy. It is assumed that the complete domain of the attribute is represented in the hierarchy.
Siehe auch:
  • Konstruktordetails

    • DomainShareMaterialized

      public DomainShareMaterialized(String[][] rawHierarchy, String[] encodedValues, int[][] encodedHierarchy)
      Creates a new set of domain shares derived from the given attribute.
      Parameter:
      rawHierarchy -
      encodedValues -
      encodedHierarchy -
  • Methodendetails

    • clone

      public DomainShareMaterialized clone()
      Beschreibung aus Schnittstelle kopiert: DomainShare
      Clones the share
      Angegeben von:
      clone in Schnittstelle DomainShare
      Setzt außer Kraft:
      clone in Klasse Object
      Gibt zurück:
    • getDomainSize

      public double getDomainSize()
      Returns the size of the domain.
      Angegeben von:
      getDomainSize in Schnittstelle DomainShare
      Gibt zurück:
    • getShare

      public double getShare(int value, int level)
      Returns the share of the given value.
      Angegeben von:
      getShare in Schnittstelle DomainShare
      Parameter:
      value -
      level -
      Gibt zurück: