Package org.deidentifier.arx.risk
Klasse RiskModelPopulationUniqueness
java.lang.Object
org.deidentifier.arx.risk.RiskModelPopulationUniqueness
Class for risks based on population uniqueness. It implements Dankar et al.'s
decision rule.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumThe statistical model used for computing Dankar's estimate. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRiskModelPopulationUniqueness(ARXPopulationModel model, RiskModelHistogram classes, ARXSolverConfiguration config) Creates a new instance -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidChecks for interruptsdoubleEstimated number of unique tuples in the population according to the given modeldoubleEstimated number of unique tuples in the population according to Dankar's decision ruledoublegetFractionOfUniqueTuplesDankar(boolean useZayatzAsFallback) Estimated number of unique tuples in the population according to Dankar's decision ruledoubleEstimated number of unique tuples in the population according to Pitman's statistical modeldoubleEstimated number of unique tuples in the population according to the SNB statistical modeldoubleEstimated number of unique tuples in the population according to Zayatz's statistical modelprotected RiskModelHistogramprotected doubleReturns the number of classesprotected doublegetNumClassesOfSize(int size) Returns the number of classes of the given size.doubleEstimated number of unique tuples in the population according to the given modeldoubleEstimated number of unique tuples in the population according to Dankar's decision rule.doublegetNumUniqueTuplesDankar(boolean useZayatzAsFallback) Estimated number of unique tuples in the population according to Dankar's decision ruledoubleEstimated number of unique tuples in the population according to Pitman's statistical modeldoubleEstimated number of unique tuples in the population according to the SNB modeldoubleEstimated number of unique tuples in the population according to Zayatz's statistical modelprotected ARXPopulationModelprotected doubleReturns the population sizeReturns the statistical model, used by Dankar et al.'protected doubleReturns the sample sizeprotected doubleReturns the sample fractionbooleanReturns whether the according estimate is availablebooleanReturns whether the according estimate is availablebooleanReturns whether the according estimate is availablebooleanReturns whether the according estimate is availablebooleanReturns whether the according estimate is availableprotected voidsetProgress(int progress) Sets the progress
-
Konstruktordetails
-
RiskModelPopulationUniqueness
public RiskModelPopulationUniqueness(ARXPopulationModel model, RiskModelHistogram classes, ARXSolverConfiguration config) Creates a new instance- Parameter:
model-classes-config-
-
-
Methodendetails
-
getFractionOfUniqueTuples
public double getFractionOfUniqueTuples(RiskModelPopulationUniqueness.PopulationUniquenessModel model) Estimated number of unique tuples in the population according to the given model -
getFractionOfUniqueTuplesDankar
public double getFractionOfUniqueTuplesDankar()Estimated number of unique tuples in the population according to Dankar's decision rule -
getFractionOfUniqueTuplesDankar
public double getFractionOfUniqueTuplesDankar(boolean useZayatzAsFallback) Estimated number of unique tuples in the population according to Dankar's decision rule- Parameter:
useZayatzAsFallback-
-
getFractionOfUniqueTuplesPitman
public double getFractionOfUniqueTuplesPitman()Estimated number of unique tuples in the population according to Pitman's statistical model -
getFractionOfUniqueTuplesSNB
public double getFractionOfUniqueTuplesSNB()Estimated number of unique tuples in the population according to the SNB statistical model -
getFractionOfUniqueTuplesZayatz
public double getFractionOfUniqueTuplesZayatz()Estimated number of unique tuples in the population according to Zayatz's statistical model -
getNumUniqueTuples
Estimated number of unique tuples in the population according to the given model -
getNumUniqueTuplesDankar
public double getNumUniqueTuplesDankar()Estimated number of unique tuples in the population according to Dankar's decision rule. -
getNumUniqueTuplesDankar
public double getNumUniqueTuplesDankar(boolean useZayatzAsFallback) Estimated number of unique tuples in the population according to Dankar's decision rule- Parameter:
useZayatzAsFallback-
-
getNumUniqueTuplesPitman
public double getNumUniqueTuplesPitman()Estimated number of unique tuples in the population according to Pitman's statistical model -
getNumUniqueTuplesSNB
public double getNumUniqueTuplesSNB()Estimated number of unique tuples in the population according to the SNB model -
getNumUniqueTuplesZayatz
public double getNumUniqueTuplesZayatz()Estimated number of unique tuples in the population according to Zayatz's statistical model -
getPopulationUniquenessModel
Returns the statistical model, used by Dankar et al.'s decision rule for estimating population uniqueness -
isAvailableEstimate
Returns whether the according estimate is available- Gibt zurück:
-
isAvailableEstimateDankar
public boolean isAvailableEstimateDankar()Returns whether the according estimate is available- Gibt zurück:
-
isAvailableEstimatePitman
public boolean isAvailableEstimatePitman()Returns whether the according estimate is available- Gibt zurück:
-
isAvailableEstimateSNB
public boolean isAvailableEstimateSNB()Returns whether the according estimate is available- Gibt zurück:
-
isAvailableEstimateZayatz
public boolean isAvailableEstimateZayatz()Returns whether the according estimate is available- Gibt zurück:
-
checkInterrupt
protected void checkInterrupt()Checks for interrupts -
getHistogram
- Gibt zurück:
- the classes
-
getNumClasses
protected double getNumClasses()Returns the number of classes- Gibt zurück:
-
getNumClassesOfSize
protected double getNumClassesOfSize(int size) Returns the number of classes of the given size. This method is only efficient for smaller class sizes.- Parameter:
size-- Gibt zurück:
-
getPopulationModel
- Gibt zurück:
- the populationModel
-
getPopulationSize
protected double getPopulationSize()Returns the population size- Gibt zurück:
-
getSampleSize
protected double getSampleSize()Returns the sample size- Gibt zurück:
-
getSamplingFraction
protected double getSamplingFraction()Returns the sample fraction- Gibt zurück:
-
setProgress
protected void setProgress(int progress) Sets the progress- Parameter:
progress-
-