Package org.deidentifier.arx.criteria
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)$
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum-Konstanten - Übersicht
Enum-Konstanten -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoublepsi(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 attributetoString()Gibt die Enumerationskonstante dieses Typs mit dem angegebenen Namen zurück.static EntropyLDiversity.EntropyEstimator[]values()Gibt ein Array mit den Konstanten dieses Enum-Typs in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
SHANNON
The Shannon estimator -
GRASSBERGER
The Grassberger estimator
-
-
Methodendetails
-
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
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ältNullPointerException- 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
- Setzt außer Kraft:
toStringin KlasseEnum<EntropyLDiversity.EntropyEstimator>
-