Enum EntropyLDiversity.EntropyEstimator

java.lang.Object
java.lang.Enum<EntropyLDiversity.EntropyEstimator>
org.deidentifier.arx.criteria.EntropyLDiversity.EntropyEstimator
Alle implementierten Schnittstellen:
Serializable, Comparable<EntropyLDiversity.EntropyEstimator>, java.lang.constant.Constable
Umschließende Klasse:
EntropyLDiversity

public static enum EntropyLDiversity.EntropyEstimator extends Enum<EntropyLDiversity.EntropyEstimator>
Enumerator of entropy estimators for the entropy-l-diversity privacy model. This enumerator actually holds the logarithm substitute \psi for entropy estimation via the formula $H = \psi(N) - 1/N \sum n \psi (n)$
  • Enum-Konstanten - Details

  • Methodendetails

    • values

      public static EntropyLDiversity.EntropyEstimator[] values()
      Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieses Enumerationstyps in der Reihenfolge ihrer Deklaration
    • valueOf

      public static EntropyLDiversity.EntropyEstimator valueOf(String name)
      Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enumerationskonstante in diesem Typ deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn dieser Enumerationstyp keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • psi

      public double psi(int n)
      The logarithm substitute of the current estimator The difference in estimating the entropy by the naive Shannon or Grassberger estimator is actually using log or G for \psi in the entropy formula $H = \psi(N) - 1/N \sum n \psi(n)$ where N is the size of the set and the sum goes over all values of the sensitive attribute, n is the count of the current sensitive attribute
      Parameter:
      n -
      Gibt zurück:
      The logarithm substitute of the estimator
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Enum<EntropyLDiversity.EntropyEstimator>